BSD Ports

www/py-laces 0.1.2_1 FreeBSD

Django components that know how to render themselves

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
BSD3CLAUSE
Categories
www, python
Package size
32.9 KiB, 173.1 KiB installed

Description

Laces components provide a simple way to combine data (in the form of Python objects) with the Django templates that are meant to render that data. The components can then be simply rendered in any other template using the {% component %} template tag. That parent template does not need to know anything about the component's template or data. No need to receive, filter, restructure or pass any data to the component's template. Just let the component render itself.

Template and data are tied together in the component, and they can be passed around together. This becomes especially useful when components are nested -- it allows us to avoid building the same nested structure twice (once in the data and again in the templates).

Working with objects that know how to render themselves as HTML elements is a common pattern found in complex Django applications, such as the Wagtail admin interface. The Wagtail admin is also where the APIs provided in this package have previously been discovered, developed and solidified. The purpose of this package is to make these tools available to other Django projects outside the Wagtail ecosystem.

In the other systems

SystemPortVersion
FreeBSDwww/py-laces0.1.2_1
NetBSDwww/py-laces0.1.0nb1
DragonFlywww/py-laces0.1.2

Install

Binary package:

pkg install py312-laces

From the ports tree:

cd /usr/ports/www/py-laces/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	py312-laces>0:www/py-laces

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.1.2_10.1.2_1-0.1.20.1.2_1
FreeBSD:14:quarterly0.1.2_10.1.2_1n/a0.1.20.1.2_1
FreeBSD:15:latest0.1.2_10.1.2_1n/a0.1.20.1.2
FreeBSD:15:quarterly0.1.2_10.1.2_1n/an/an/a
FreeBSD:16:latest0.1.2_10.1.2_1n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 2

Runtime 1

The full lists below include those, and their dependencies in turn.

Build dependencies 23
Run dependencies 18

Configuration

No options to configure.

USES
python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
laces-0.1.2.tar.gz292643218e09c1889ae5cf3fc7a82f5bb63ec0c7879889b6a9760bfc42323c694b84d
Master sites 1
  • PYPI

Commit history 0

No commits in the history this site was built from.