Created
August 6, 2012 02:10
-
-
Save ncb000gt/3269142 to your computer and use it in GitHub Desktop.
Tako template reloads.
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 tako = require('tako'), | |
path = require('path'), | |
watch = require('watch'), | |
app = tako(), | |
templates = app.templates; | |
var templatePath = path.join(__dirname, 'templates'); | |
templates.directory(templatePath); | |
watch.watchTree(templatePath, function() { | |
console.log('reload templates'); | |
templates.directory(templatePath); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment