Skip to content

Instantly share code, notes, and snippets.

@tlack
Created April 20, 2012 01:47
Show Gist options
  • Save tlack/2425247 to your computer and use it in GitHub Desktop.
Save tlack/2425247 to your computer and use it in GitHub Desktop.
example of node.js + handlebars
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