Hi all

I am in the process of creating an assets dependency bundle which will
enable Twig templates to register any stylesheet / javascript
dependencies, something like the following:

// foo_template.html.twig
{% depends_on_stylesheets [
  '@FooBundle/Resources/public/css/main.css',
  '@BarBundle/Resources/public/css/colors.css',
] %}

{% depends_on_javascript [
  '@FooBundle/Resources/public/js/myjs.js',
] %}

The idea is that:

 - Assets are only included once (our application has lots of extensions
which require the same JS for example)
 - This is a more reliable way of including assets than overriding a
"stylesheets" or "javascripts" block.
 - The assets can be compiled by assetic

So I just want to check that this is a valid bundle, and that Im not
missing anything..

Thanks

dan

-- 
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 symfony-devs@googlegroups.com
To unsubscribe from this group, send email to
symfony-devs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to