http://www.djangosnippets.org/snippets/739/

This provides basic Tenjin integration, using a decorator. Tenjin is a  
blazingly fast templating system, the fastest pure-python system  
available. You can find it here: http://www.kuwata-lab.com/tenjin/

For usage and configuration, see the example in the code.

I modeled this after Robert Thomson's code for Mako integration.  
Tenjin does not provide its own error page, so Django's standard error  
handling will take over (which I prefer anyway).

Also, you will notice that the decorator takes two arguments. The  
second is for a layout file, which can be specified in the render  
call, dramatically simplifying the structure of the templates as  
compared to Mako.

--
Martin Diers

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to