documentcloud / jammit

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

0.5.0 template change breaks me #52

Closed xxx closed 14 years ago

xxx commented 14 years ago

Hi,

Is there a way to get the previous functionality back where templates are put into a separate file? I need that functionality (I'm embedding the compiled templates into a separate file after the jammit run) and would rather not have to fork the gem to keep it.

jashkenas commented 14 years ago

Sure. All you need to do is make a separate asset package, just for your templates. Then they'll be the only thing in that particular file. Something along the lines of:

javascripts:
  templates:
    - app/views/templates/*.jst

And then, you can grab public/assets/templates.js at your leisure.