Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Sprockets includes Jammit-inspired JST support. You can use it with either EJS or Eco templates. See the "JavaScript Templating" section of the readme: https://github.com/sstephenson/sprockets#readme

You can even write your own JST template class. Here's an example that adds Mustache template support: https://github.com/josh/mustache-trimmer/blob/master/lib/til...



Cool, thanks! I can't wait to try that out.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: