Hi Romain Unfortunately my template is in DB and is passed to template as a page.content variable. It is not a static file, so include is not working.
2011/5/29 Romain <imp...@gmail.com>: > Hello, > > On Sun, May 29, 2011 at 11:30 AM, mrok <szt...@gmail.com> wrote: >> >> Hi >> >> Is there any way to render twig template inside template? >> I keep twig template code in DB (I need show something for customer >> fast so it is a baypass) and now have a problem how render template >> passed to template as variable (I would like to avoid create tmp >> file). >> >> Code: >> >> {% block content %} >> <div class="infopage-2column-left"> >> {{ page.content <- this variable contains twig template. >> How render > > Try > > {% include 'your/template/torender.twig' %} > >> >> it properly? }} >> </div> >> {% endblock %} >> >> Br >> mrok >> >> -- >> If you want to report a vulnerability issue on symfony, please send it to >> security at symfony-project.com >> >> You received this message because you are subscribed to the Google >> Groups "symfony users" group. >> To post to this group, send email to symfony-users@googlegroups.com >> To unsubscribe from this group, send email to >> symfony-users+unsubscr...@googlegroups.com >> For more options, visit this group at >> http://groups.google.com/group/symfony-users?hl=en > > -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfony-project.com > > You received this message because you are subscribed to the Google > Groups "symfony users" group. > To post to this group, send email to symfony-users@googlegroups.com > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en > -- www.sztart.pl -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en