Skip to content

Instantly share code, notes, and snippets.

@devdays
Created December 18, 2014 18:44
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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