Hi Matt,
The Twig extension does not support this, but you can now (in master) define
assets in your configuration and reference them by name in your template.
For example:
assetic:
filters:
coffee: ~
assets:
some_coffee:
inputs: js/main.coffee
filters: coffee
And in your template...
{% javascripts ‘@some_coffee’ ‘js/foo.js’ filter=‘yui_js’ %} ... {%
endjavascripts %}
I hope that helps!
Kris
PS — Please write a blog article about using CoffeeScript in Symfony2 if you’re
able to get it working :)
On Sunday, May 15, 2011 at 12:56 AM, Luis Cordova wrote:
use yui-compressor
>
> On Sun, May 15, 2011 at 2:41 AM, Matt Drollette <[email protected]> wrote:
> > Yeah, the coffee filter works great. But I can only apply it to .coffee
> > files. The best I can do with the twig javascripts helper is to dump one js
> > file from the coffee sources and one js file from everything else... but I
> > want one minified js file from everything.
>
> --
> 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
>
--
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