lib/client/template_engines/default.js
// Default Engine produces standard <script> tags which can be used with jQuery Templates and uncompiled
// Hogan/Mustache templates among many others.
// Note all templates are prefixed with 'tmpl-' to prevent conflicts with DOM IDs in your application
'use strict';
module.exports = function() {
return {
name: 'Default',
process: function(template, path, id) {
return '<script id="tmpl-' + id + '" type="text/x-tmpl">' + template + '</script>';
}
};
};