3 ms·
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://
by sstephenson 15y ago
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 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/tilt/mustache_js_template.rb https://github.com/josh/mustache-trimmer/blob/master/lib/til...
- davidcuddeback 15y agoCool, thanks! I can't wait to try that out.