assemble-render-file
Advanced tools
Comparing version 0.1.1 to 0.2.0
14
index.js
@@ -30,3 +30,8 @@ /*! | ||
app.define('renderFile', function(locals) { | ||
app.define('renderFile', function(engine, locals) { | ||
if (typeof engine !== 'string') { | ||
locals = engine; | ||
engine = null; | ||
} | ||
var opts = {}; | ||
@@ -54,2 +59,3 @@ if (locals && !locals.isCollection) { | ||
var ctx = utils.merge({}, app.cache.data, locals, file.data); | ||
ctx.engine = engine || ctx.engine; | ||
@@ -59,3 +65,7 @@ // render the file | ||
if (err) return next(err); | ||
next(null, new File(res)); | ||
var view = new File(res); | ||
if (typeof engine === 'string') { | ||
delete view.fn; | ||
} | ||
next(null, view); | ||
}); | ||
@@ -62,0 +72,0 @@ }); |
{ | ||
"name": "assemble-render-file", | ||
"description": "Assemble plugin for rendering views in a vinyl pipeline.", | ||
"version": "0.1.1", | ||
"version": "0.2.0", | ||
"homepage": "https://github.com/jonschlinkert/assemble-render-file", | ||
"author": "Jon Schlinkert (https://github.com/jonschlinkert)", | ||
"repository": "jonschlinkert/assemble-render-file", | ||
"bugs": { | ||
"url": "https://github.com/jonschlinkert/assemble-render-file/issues" | ||
}, | ||
"bugs": "https://github.com/jonschlinkert/assemble-render-file/issues", | ||
"license": "MIT", | ||
@@ -24,3 +22,3 @@ "files": [ | ||
"dependencies": { | ||
"lazy-cache": "^0.2.3", | ||
"lazy-cache": "^0.2.4", | ||
"mixin-deep": "^1.1.3", | ||
@@ -30,3 +28,3 @@ "through2": "^2.0.0" | ||
"devDependencies": { | ||
"assemble": "assemble/assemble#dev", | ||
"assemble-core": "^0.1.8", | ||
"engine-base": "^0.1.2", | ||
@@ -55,2 +53,2 @@ "engine-handlebars": "^0.8.0", | ||
} | ||
} | ||
} |
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
6368
74
Updatedlazy-cache@^0.2.4