I'm trying to do some form of skinning with Django's templating engine.
Without going into too much detail, my project is kindof a service that
powers multiple sites. Each site can have a skin inside a site-specific
folder. These folders are not parallel to each other.
for example:
myapp/webroot
cannot add it to
TEMPLATE_DIRS.
Le Roux
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
To unsubscri
Hmm. Just realised that truncatewords already adds the ... at the end..
Anyway, I wrote some filters (not tested extensively):
from django.template import Library
def gt(value, arg):
"Returns a boolean of whether the value is greater than the
argument"
return value > int(arg)
def lt(va
right
direction before I write something myself.
Le Roux
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
To un
ny improvements will be
welcome. It feels like most of my time goes into writing manipulators,
but maybe that's just because of the mental overhead in understanding
how it all works..
Le Roux Bodenstein
--~--~-~--~~~---~--~~
You received this message because