engine-base
Advanced tools
Comparing version 0.1.2 to 0.1.3
25
index.js
@@ -26,3 +26,3 @@ 'use strict'; | ||
name: 'base', | ||
dest: {ext: '.html'}, | ||
dest: {ext: '.html'} | ||
}; | ||
@@ -62,2 +62,5 @@ | ||
delete settings.imports.with; | ||
delete settings.imports.if; | ||
var base = new utils.Engine(settings); | ||
@@ -172,3 +175,3 @@ return base.compile(str, settings); | ||
if (typeof cb !== 'function') { | ||
return renderSync(str, options); | ||
return renderSync(str, locals); | ||
} | ||
@@ -236,20 +239,2 @@ try { | ||
// function normalizeOptions(options) { | ||
// locals = locals || {}; | ||
// locals.settings = locals.settings || {}; | ||
// var settings = {}; | ||
// var picked = utils.merge(pick(locals), pick(locals.settings)); | ||
// var delims = picked.delims; | ||
// var opts = picked.opts; | ||
// var fns = picked.fns; | ||
// settings.imports = utils.merge({}, fns.helpers, fns.imports); | ||
// settings = utils.merge({}, settings, delims); | ||
// if (locals.debugEngine === true) { | ||
// inspectHelpers(settings, opts); | ||
// } | ||
// } | ||
/** | ||
@@ -256,0 +241,0 @@ * Conflict report displayed when the same key exists as both |
{ | ||
"name": "engine-base", | ||
"description": "Default engine for Template.", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"homepage": "https://github.com/jonschlinkert/engine-base", | ||
@@ -24,30 +24,33 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)", | ||
"dependencies": { | ||
"component-emitter": "^1.2.0", | ||
"delimiter-regex": "^1.3.1", | ||
"engine": "^0.1.7", | ||
"component-emitter": "^1.2.1", | ||
"delimiter-regex": "^2.0.0", | ||
"engine": "^0.1.12", | ||
"engine-utils": "^0.1.1", | ||
"lazy-cache": "^0.2.3", | ||
"lazy-cache": "^2.0.2", | ||
"mixin-deep": "^1.1.3", | ||
"object.omit": "^2.0.0", | ||
"object.pick": "^1.1.1" | ||
"object.omit": "^2.0.1", | ||
"object.pick": "^1.2.0" | ||
}, | ||
"devDependencies": { | ||
"gulp": "^3.9.0", | ||
"gulp-istanbul": "^0.10.0", | ||
"gulp-jshint": "^1.11.2", | ||
"gulp-mocha": "^2.1.3", | ||
"jshint-stylish": "^2.0.1", | ||
"mocha": "*" | ||
"gulp": "^3.9.1", | ||
"gulp-istanbul": "^1.1.1", | ||
"gulp-jshint": "^2.0.4", | ||
"gulp-mocha": "^3.0.1", | ||
"jshint-stylish": "^2.2.1", | ||
"mocha": "^3.2.0" | ||
}, | ||
"keywords": [], | ||
"keywords": [ | ||
"base", | ||
"engine" | ||
], | ||
"verb": { | ||
"related": { | ||
"list": [ | ||
"engine-cache", | ||
"engine-handlebars", | ||
"engine-less", | ||
"engine-lodash", | ||
"engine-cache", | ||
"helper-cache", | ||
"template-helpers", | ||
"template", | ||
"engine-handlebars", | ||
"engine-less" | ||
"template-helpers" | ||
] | ||
@@ -54,0 +57,0 @@ } |
22
utils.js
'use strict'; | ||
var utils = require('lazy-cache')(require); | ||
var fn = require; | ||
require = utils; | ||
/** | ||
* Module dependencies. | ||
* Lazily required module dependencies | ||
*/ | ||
var lazy = module.exports = require('lazy-cache')(require); | ||
require('delimiter-regex', 'delims'); | ||
require('engine', 'Engine'); | ||
require('mixin-deep', 'merge'); | ||
require('object.omit', 'omit'); | ||
require('object.pick', 'pick'); | ||
require = fn; | ||
/** | ||
* Lazily required module dependencies | ||
* Expose `utils` modules | ||
*/ | ||
lazy('object.omit', 'omit'); | ||
lazy('object.pick', 'pick'); | ||
lazy('mixin-deep', 'merge'); | ||
lazy('engine-utils', 'utils'); | ||
lazy('delimiter-regex', 'delims'); | ||
lazy('engine', 'Engine'); | ||
module.exports = utils; |
Sorry, the diff of this file is not supported yet
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
14192
265
3
+ Addeddelimiter-regex@2.0.0(transitive)
- Removeddelimiter-regex@1.3.1(transitive)
Updatedcomponent-emitter@^1.2.1
Updateddelimiter-regex@^2.0.0
Updatedengine@^0.1.12
Updatedlazy-cache@^2.0.2
Updatedobject.omit@^2.0.1
Updatedobject.pick@^1.2.0