You can create an intermediate base class that extends your base class and includes elements like:
{% if actions %} ... show action table ... {% endif %} {% if element %} ... show edit element form ... {% else %} ... show add element form ... {% endif %} and so forth and so on. Now your page appearance is controlled by whether or not you pass in corresponding data elements. This is not a true replacement for templates, but it does allow for consolidation of repeating visual elements across a set of pages. On Jan 21, 8:30 pm, "Papalagi Pakeha" <[EMAIL PROTECTED]> 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/)? > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---