javascript templating
Closure Templates
#haml
EJS - JavaScript Templates
test.ejs // template file
<%= title %>
<a href='supplies/<%= supplies[i] %>'>
<%= supplies[i] %>
</a>
<% for(var i=0; i<supplies.length; i++) { %>
<% } %>
test.html
another form: // put data in comments.json
new EJS({url: 'comments.ejs'}).update('element_id', '/comments.json')
沒有留言:
張貼留言