Template engine too tightly tied to settings module.. (specifically TEMPLATE_DIRS)

2006-10-23 Thread Le Roux Bodenstein
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

Django's templating engine too tightly tied to TEMPLATE_DIRS in settings module

2006-10-23 Thread Le Roux Bodenstein
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

Re: greater_than and less_than template filters

2006-10-11 Thread Le Roux Bodenstein
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

greater_than and less_than template filters

2006-10-11 Thread Le Roux Bodenstein
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

Re: Manipulators going away?

2006-07-12 Thread Le Roux
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