slippers
0.6.2
Construya componentes reutilizables en Django sin escribir una sola línea de Python.
{% # quote %}
{% quote_photo src = "/project-hail-mary.jpg" %}
{% # quote_text %}
“I penetrated the outer cell membrane with a nanosyringe."
"You poked it with a stick?"
"No!" I said. "Well. Yes. But it was a scientific poke
with a very scientific stick.”
{% / quote_text %}
{% # quote_attribution %}
Andy Weir, Project Hail Mary
{% / quote_attribution %}
{% / quote %} El lenguaje de la plantilla de Django es increíble. Es rápido, rico en características y, en general, es muy bueno trabajar con él.
Slippers tiene como objetivo aumentar el DTL, agregando la funcionalidad suficiente para que las interfaces de construcción sean más cómodas .
Incluye etiquetas y filtros de plantilla adicionales, pero su característica principal son componentes reutilizables .
{% # button variant = "primary" %} See how it works {% / button %}Mira como funciona
pip install slippers
Agréguelo a su INSTALLED_APPS :
INSTALLED_APPS = [
...
'slippers' ,
...
]La documentación completa se puede encontrar en el sitio de documentación de zapatillas.
MIT