Build reusable components in Django without writing a single line of 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 %}
The Django Template Language is awesome. It's fast, rich in features, and overall pretty great to work with.
Slippers aims to augment DTL, adding just enough functionality to make building interfaces just that bit more comfortable.
It includes additional template tags and filters, but its headline feature is reusable components.
{% #button variant="primary" %}See how it works{% /button %}
pip install slippers
Add it to your INSTALLED_APPS
:
INSTALLED_APPS = [
...
'slippers',
...
]
Full documentation can be found on the Slippers documentation site.
MIT