Skip to content Skip to sidebar Skip to footer

Format Of EJS And JST Template Files In Rails-backbone Gem

I am using the rails-backbone gem ( https://github.com/codebrew/backbone-rails). For rendering HTML, it uses some kind of javascript templates, whose name I cannot tell even after

Solution 1:

Rails processes EJS templates with ejs gem which is a port of underscore.js's _.template function to Ruby. Output of that is a javascript function which in turn will produce the html when run in the browser.

  • .ejs – embedded javascript
  • .jst – javascript template

Here's recent article which includes also description of backbone-rails:


Post a Comment for "Format Of EJS And JST Template Files In Rails-backbone Gem"