On Mon, Nov 22, 2010 at 7:27 PM, Lukas Kahwe Smith <[email protected]> wrote:
> ah .. i thought it renders the templates before it it renders the layout. or 
> does it start with the layout and then works itself back up the chain?

It flattens the whole extends tree at compile time, then at runtime,
it starts at the top of the layout, and works down, rendering blocks
as they come. That also means things like {% stylesheet "foo.css" %}
can not be called in content templates, if you want to output the
stylesheets in your <head> tag. For js though it's ok since you most
likely want that at the end of the page anyway.

Cheers

-- 
Jordi Boggiano
@seldaek :: http://seld.be/

-- 
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 developers" 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/symfony-devs?hl=en

Reply via email to