documentcloud / jammit

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

Jammit corrupts Jade js templates #172

Closed lexer closed 13 years ago

lexer commented 13 years ago

Im trying to adopt (http://jade-lang.com/) templates.

I have successfully write template function for and it works fine. However jammit corrupt indents that are critical to Jade language that is very similar to Haml.

For example: tr.item tr.item td= item.address

passed as: tr.itemtr.item td= item.address

Jade integration function is posted here: http://zakharov.posterous.com/using-jade-as-jammit-javascript-template

heikki commented 13 years ago

It might be already fixed. See #127.

jashkenas commented 13 years ago

This should be fixed, as of a3c38d80895cdc13c1d26783bd4c71f15831be1b ... it'll go out in the next release.