Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
QUnit.test("jsrender.tags.clientTemplate", function(assert) {
jsrender.views.settings.delimiters("<%", "%>");
var tmpl = jsrender.compile(
'\n'
+ '\n'
+ '<%clientTemplate "./test/templates/outer.html"/%>\n'
+ '<%clientTemplate "./test/templates/inner.html"/%>\n'
+ '\n'
+ '<div id="result"></div>\n'
+ '');
var html = tmpl({name: "Jo"});
assert.equal(html,
'\n'
+ '\n'
+ '\n'
+ '\n'
+ '\n'
+ '<div id="result"></div>\n'