I also just added a way to add filters to your assets behind the scenes,
which is another way to solve this issue.

https://github.com/symfony/symfony/pull/954

On May 15, 2011, at 1:01 AM, Kris Wallsmith <
kris.wallsm...@symfony-project.com> wrote:

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

Reply via email to