This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit 8083de7f01a5cf00666fd817dfd9e24798b6136c
tree 9599cb9d5abe2ab45d23446378c8642dda1b05ba
parent 1899685b76bce140d8b1680563c0dad29604b501
tree 9599cb9d5abe2ab45d23446378c8642dda1b05ba
parent 1899685b76bce140d8b1680563c0dad29604b501
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Fri Nov 06 15:26:31 -0800 2009 | |
| |
LICENSE | Sat Nov 07 16:21:29 -0800 2009 | |
| |
README | Sat Nov 07 16:21:29 -0800 2009 | |
| |
setup.py | Sat Nov 07 16:22:39 -0800 2009 | |
| |
templatetag_sugar/ | Tue Nov 17 08:11:29 -0800 2009 |
README
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.







