Hi Papa

> i wonder if there is any way to have Macros in django templates
> similar to what Jinja has (http://jinja.pocoo.org/)?

Have a look at "Support for {% macro %} tags in templates" at 
http://www.djangosnippets.org/snippets/363/

I bet it's exactly what you're after. It lets you define macros with 
{%macro%} tag and use it with {%usemacro%}, you can load macros from 
external file with {%loadmacros%}, etc.

Hope that helps

Michal






--~--~---------~--~----~------------~-------~--~----~
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