Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
SPA - Execute template
define(['_', 'jquery'], function (_, $) {
var showName = function (n) {
var temp = _.template("Hello <%= name %>");
$("body").html(temp({ name: n }));
};
return {
showName: showName
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment