Hi all,

I would like to be able to include a template from another template so
that the included template understands the tag definitions defined in
the including template, but I can't think of a simple way to do it.

E.g. say that mytags defines a tag called "mytag".  I would like the
following to work

====  outer.tmpl ====
{% load mytags %}
{% include "inner.tmpl" %}
==== /outer.tmpl ====

====  inner.tmpl ====
Here is what my tag does: {% mytag %}
==== /inner.tmpl ====

Obviously, it doesn't work because {% include ... %} doesn't pass on
the currently defined tags to the included template.  But is there a
simple way to achieve this?

Thanks,

--
Arnaud

--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to