Created
June 9, 2012 12:57
-
-
Save berzniz/2900899 to your computer and use it in GitHub Desktop.
handlebars1
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 rawTemplate = '<p>Hello {{name}}</p>'; // (step 1) | |
var compiledTemplate = Handlebars.compile(rawTemplate); // (step 2) | |
var html = compiledTemplate({ name : 'World' }); // (step 3) | |
// html content will now be: <p>Hello World</p> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment