documentcloud / jammit

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

Using Handlebars.js as the template language #194

Open jsmestad opened 12 years ago

jsmestad commented 12 years ago

I wanted to ask if it's possible to use Handlebars.js instead of Mustache.js for templating. It seems from the surface that these two things should be swappable, but wanted to post here to confirm and also have a document trail for other people wondering the same thing.

jsmestad commented 12 years ago

Not sure if @wycats has any answers to this, but including him can't hurt :)

sdhull commented 12 years ago

Google yielded both this issue and this gist. Going to test it out today. If I remember, I'll report how it works.

omricohen commented 12 years ago

any update on how it worked?

sdhull commented 12 years ago

Unfortunately this was for a side project I lost steam on. Don't think I ever actually did this. Sorry @omricohen ... it is still something I'm interested in doing, but I have no timeline for working on it.

mcmire commented 12 years ago

Looked into this. The gist that @sdhull posted (and its fork) wasn't enough, because partials didn't work. Here is what you need to do: https://gist.github.com/1470966