TrevorBurnham/connect-assets — Issue #29: Usage changed?
Author: hasenj
Created: 2011-10-08 17:10:49+00:00
State: open

I used to have

`app.use(require('connect-assets')(src:__dirname+'/assets'))`

and when I want to server my `assets/fname.coffee`, I'd throw this piece of html:

``

Now it seems this won't work anymore.

I figured out that `__dirname` doesn't work anymore from #23,

And now it seems that the only way to trigger compilation is by calling the `js` and `css` functions.

Having global `js` and `css` functions is cool, but why make it the only way to trigger compilation? Why doesn't a simple request to `/fname.js` trigger the compilation of `assets/fname.coffee` anymore?