documentcloud / jammit

Industrial Strength Asset Packaging for Rails
http://documentcloud.github.com/jammit/
MIT License
1.16k stars 197 forks source link

Jammit with EJS javascript templates #205

Closed nicolo closed 12 years ago

nicolo commented 12 years ago

Has anyone used Jammit with EJS javascript templates? I can't figure out how I should load a new template with jammit. It's causing me caching issues.

Here is how you would normally load a template. Not sure how I would do it using Jammit.
http://code.google.com/p/embeddedjavascript/wiki/Templates html = new EJS({url: '/template.ejs'}).render(data)

jashkenas commented 12 years ago

I'm afraid I've never tried to use Jammit with EJS -- can't help.