Re: django problem with include of templates in block as variable

2009-02-04 Thread Ales Zoulek
That should work. http://docs.djangoproject.com/en/dev/ref/templates/builtins/#include Try this: {% extends "main.html" %} {% block test %} CODE: {{code}} {% include code %} {% endblock %} Do you see the code value in the output? On Wed, Feb 4, 2009 at 1:51 PM, Dafidov wrote: > > Hello >

django problem with include of templates in block as variable

2009-02-04 Thread Dafidov
Hello I have this kind of problem: In some child template I want to include in {% block metatags %} other file depending of which link was clicked on page. In view I'm sending as code the name of this variable and when i display it everything is ok - there is this data what I need under this code,