Hi ken! the key to this is the use of twig's parent() function. You can find details here
http://symfony.com/doc/current/book/templating.html#including-stylesheets-and-javascripts-in-twig Good luck! @weaverryan On Aug 2, 2011 3:21 AM, "Ken Marfilla" <[email protected]> wrote: > Is there a way to append/prepend/replace {%javascripts%} or {%stylesheets%} > assets in a parent twig template from a child template? The idea is to > maintain a single aggregated stylesheet or script tag for every page but the > current design allows aggregation on a per {%javascripts%} or > {%stylesheets%} node only. > > Example: > > parent base.html.twig > {%stylesheets 'yui-reset' filter='yui_css' %} > <link href="{{ asset_url }}" type="text/css"/> > {%endstylesheets%} > > child index.html.twig > {%extends '::base.html.twig'%} > {# how do i append more css in the parent stylesheet node #} > > -- > 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 -- 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
