You cannot add assets to an Assetic tag from afar. I think that’s what you’re 
asking. You can extend a twig block and append another Assetic tag to it, which 
is what Ryan is suggesting. You can also override the block with a new Assetic 
tag, repeating what you have in the previous one.

{# append another tag #}
{% block javascripts %}
{{ parent() }}
{% javascripts ‘js/another.js’ %}
<script src=“{{ asset_url }}”></script>
{% endjavascripts %}
{% endblock %}

{# override the parent tag #}
{% block javascripts %}
{% javascripts ‘@app_js’ ‘js/another.js’ %}
<script src=“{{ asset_url }}”></script>
{% endjavascripts %}
{% endblock %}


Kris  


On Tuesday, August 2, 2011 at 5:25 AM, Ken Marfilla wrote:

> Ryan,
>  
> But those are for block twig node. Correct me if I'm wrong, as far as I know 
> stylesheets and javascripts assetic twig node do not have parent context 
> inside it. Even if it has, the part that need overrides are implemented as 
> node attribute not content as implemented in block node.  
>  
>  --  
>  If you want to report a vulnerability issue on symfony, please send it to 
> security at symfony-project.com (http://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] 
> (mailto:[email protected])
>  To unsubscribe from this group, send email to
> [email protected] 
> (mailto:[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

Reply via email to