I'm no expert with any template system, but I believe you can write your own template tags for django's template system.

http://www.djangoproject.com/documentation/templates_python/

At the section called "Extending the template system"

Hopefully this is a good starting point!

Jeff Anderson

Papalagi Pakeha wrote:
hi there!

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

the closest i could get was using 'include' tag and have the
repetitive content in a standalone file, but it's pretty obscure to
have a separate file for each little bit of content that to be
repeated here and there.

is there any other way other than switching to Jinja to get some sort
of macros in django templates?

thanks

papa

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



Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to