Comparing version 0.1.1 to 0.1.2
@@ -103,6 +103,7 @@ 'use strict'; | ||
var tpl = fs.readFileSync(ejsfile, 'utf8'); | ||
data.filename = ejsfile; | ||
file.contents = new Buffer(ejs.render(tpl, data)); | ||
} | ||
} catch (err) { | ||
errmsg = "[gulp-tpl.html error: " + dirname + tplname + "] " + err; | ||
errmsg = "[gulp-tpl.html error: " + path.join(dirname,tplname) + "] " + err; | ||
} | ||
@@ -109,0 +110,0 @@ } |
{ | ||
"name": "gulp-tpl", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "(handlebars/ejs) + yaml -> html", | ||
@@ -37,3 +37,3 @@ "author": "changkong <changkong012@gmail.com>", | ||
"js-yaml": "~3.0.2", | ||
"ejs": "^1.0.0" | ||
"ejs": "~1.0.0" | ||
}, | ||
@@ -40,0 +40,0 @@ "devDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4431
108
Updatedejs@~1.0.0