Created
April 20, 2012 01:47
-
-
Save tlack/2425247 to your computer and use it in GitHub Desktop.
example of node.js + handlebars
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
var h = require('handlebars'); | |
var tmpl = h.compile("<p>{{name}}</p>"); | |
var data = {name:"tlack"}; | |
console.log(tmpl(data)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment