javascript - Format of EJS and JST template files in rails-backbone gem -
i using rails-backbone gem ( https://github.com/codebrew/backbone-rails). rendering html, uses kind of javascript templates, name cannot tell after few hours of search.
for example, generates such file view template:
# company.jst.ejs <td><%= name %></td> <td><%= tid %></td> <td><a href="#/<%= _id %>">show</td> <td><a href="#/<%= _id %>/edit">edit</td> <td><a href="#/<%= _id %>/destroy" class="destroy">destroy</a></td>
my questions are: .jst format? , in rails 3.1, library processes it? same question .ejs extension. , what's name of template engine? underscore?
rails processes ejs templates ejs gem port of underscore.js's _.template function ruby. output of javascript function in turn produce html when run in browser.
- .ejs – embedded javascript
- .jst – javascript template
here's recent article includes description of backbone-rails:
Comments
Post a Comment