On Sat, 2009-03-07 at 00:28 -0800, jago wrote:
> Hi,
>
> I want to include a file using {% include "header.html" %}
>
> However I want to be able to dynamically use different files then
> "header.html"
>
> Obviously {% include {{ include_filename }} %} does not work.
>
> Can I make this work somehow?
The answer is in the documentation for the "include" template tag.
There's even an example of it:
http://docs.djangoproject.com/en/dev/ref/templates/builtins/#include
Regards,
Malcolm
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---