Created
December 18, 2014 18:44
-
-
Save devdays/e841ac58e00554e4cbbc to your computer and use it in GitHub Desktop.
SPA - Execute template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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