Hi,
I'm playing with Symfony 2 and Twig and i have a question about
javascript and stylesheet tags.
It seems impossible to set any page specific stylesheet or javascript
because in the template inheritance the parent is rendered before the
children.
Because of that we are not able to do something like :
layout.twig :
<head>
<title></title>
{% javascript 'js/myscript.js' %}
{% javascripts %}
</head>
index.twig :
{% javascript 'js/index.js' %}
{% extends "SiteBundle::layout.twig" %}
It really limits the interest of javascript and stylesheet tags, or
maybe there is another way to do that ?
Thanks.
br,
Benjamin.
--
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 [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-users?hl=en