Re: include file, filename itself is variable.

2009-03-07 Thread jago
Sorry. Found the problem. My bad - simple stupidity. --~--~-~--~~~---~--~~ 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 gr

Re: include file, filename itself is variable.

2009-03-07 Thread jago
Oh, actually I tried that but when it didn't work I got creative with {% include {{ include_filename }} %} I believe my problem is somewhere else. In my main HTML file index.html I use {% include "header_viz_js.html" %} in header_viz_js.html I use {% include template_name %} Result: header_vi

Re: include file, filename itself is variable.

2009-03-07 Thread Malcolm Tredinnick
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

include file, filename itself is variable.

2009-03-07 Thread jago
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? --~--~-~--~~~---~--~~ You