Created
January 13, 2013 01:26
-
-
Save tomas-stefano/4521653 to your computer and use it in GitHub Desktop.
Play handlebars in node
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
$ npm install handlebars | |
$ node | |
> var Handlebars = require('handlebars'); | |
> var template = Handlebars.compile("Hi, {{name}}"); | |
> console.log(template({name: "Bob"})); | |
Hi, Bob |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment