Skip to content

Instantly share code, notes, and snippets.

@devdays
Created December 18, 2014 18:44
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