forked from alex/django-templatetag-sugar
-
Notifications
You must be signed in to change notification settings - Fork 0
This project exists to make defining template tags in Django kickass
License
django-rdf-tools/django-templatetag-sugar
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
django-templatetag-sugar =========================== A library to make writing templatetags in Django sweet. Here's an example of using:: @tag(register, [Constant("for"), Variable(), Optional([Constant("as"), Name()])]): def example_tag(context, val, asvar=None): if asvar: context[asvar] = val return "" else: return val As you can see it makes it super simple to define the syntax for a tag.
About
This project exists to make defining template tags in Django kickass
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published
Languages
- Python 100.0%