On Fri, 11 Feb 2011 14:25:00 +0100, Christophe Beyer <cbe...@cap-tic.fr>
wrote:
> This works great :
>> {% block title %}My title - {{ parent() }}{% endblock %}
> 
> 
> Nothing about this tip in the documentation, I could'nt know this.
> 
> Thanks !
> 

The Twig documentation clearly says that the "parent" function exists and
is used to display the content of the parent block :
http://www.twig-project.org/doc/templates.html#parent-blocks

-- 
Christophe | Stof

-- 
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

Reply via email to