Created
February 15, 2015 04:32
-
-
Save briandk/aff91bf1396fce5cbe93 to your computer and use it in GitHub Desktop.
Use node and handlebars together
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
// load modules | |
var Handlebars = require('handlebars'); | |
var fs = require('fs'); | |
var template = Handlebars.compile( | |
fs.readFileSync( | |
'transcriptTemplate.handlebars', | |
encoding='utf8' | |
) | |
) | |
console.log(template); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment