added some compatability stuff for 0.8. Dropping support for 0.6 which seems really old anyway

This commit is contained in:
Spencer Alger
2013-11-05 12:19:41 -07:00
parent bb814c2bab
commit ca29fbe6e3
9 changed files with 105 additions and 34 deletions

View File

@ -114,9 +114,7 @@ fs.readdirSync(path.resolve(__dirname)).forEach(function (filename) {
var name = filename.replace(/\..+$/, '');
if (name !== 'index') {
templates[name] = _.template(
fs.readFileSync(path.resolve(__dirname, filename), {
encoding: 'utf8'
}),
fs.readFileSync(path.resolve(__dirname, filename), 'utf8'),
null,
{
imports: templateGlobals