Micro Templates¶
These allow you to create small pieces of template code and store in javascript.
Create the template file in views, then run through manage/build_template.
You include templates_lang.js
Then in js do something like this: var template = _.template(Templates.tpl_transaction);
Create a variable, such as txn (below) to contain template substitutions.
Now render like this: $(‘#txn-table’).append(template(txn));