Created
June 30, 2015 20:36
-
-
Save lorenzoongithub/5c93f5e6766f700da4a8 to your computer and use it in GitHub Desktop.
hogan.js
This file contains hidden or 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
// | |
// A compiler for the Mustache templating language | |
// http://twitter.github.com/hogan.js | |
// | |
load('https://cdnjs.cloudflare.com/ajax/libs/hogan.js/3.0.2/hogan.js'); | |
data = { | |
screenName: "dhg" | |
}; | |
template = Hogan.compile("Follow @{{screenName}}."); | |
output = template.render(data); | |
if (output != 'Follow @dhg.') throw ''; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment