Skip to content

Instantly share code, notes, and snippets.

@devdays
Created December 18, 2014 18:44
Show Gist options
  • Save devdays/e841ac58e00554e4cbbc to your computer and use it in GitHub Desktop.
Save devdays/e841ac58e00554e4cbbc to your computer and use it in GitHub Desktop.
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