express-view
Advanced tools
Comparing version 0.0.1-rc2 to 0.0.1-rc3
10
index.js
@@ -22,7 +22,2 @@ /* | ||
if (!app.get('locator')) { | ||
debug('Call `app.set("locator", locatorObj)` before extending the `express` app with `express-lang`'); | ||
throw new Error('Locator instance should be mounted'); | ||
} | ||
// Brand. | ||
@@ -36,2 +31,7 @@ Object.defineProperty(app, '@view', { | ||
if (!app.get('locator')) { | ||
debug('Call `app.set("locator", locatorObj)` before listening for traffic on the `express` app.'); | ||
throw new Error('Locator instance should be mounted'); | ||
} | ||
options = options || {}; | ||
@@ -38,0 +38,0 @@ options.locator = app.get('locator'); |
@@ -134,3 +134,3 @@ /* | ||
if (!template) { | ||
throw new Error('Failed to lookup view "' + this.name + '"'); | ||
fn(new Error('Failed to lookup view "' + this.name + '"')); | ||
} | ||
@@ -137,0 +137,0 @@ if (layout) { |
{ | ||
"name" : "express-view", | ||
"description": "Express view class for synthetic views.", | ||
"version" : "0.0.1-rc2", | ||
"version" : "0.0.1-rc3", | ||
"homepage" : "https://github.com/caridy/express-view", | ||
@@ -16,2 +16,5 @@ | ||
}, | ||
"contributors": [ | ||
"alberto chan <imalberto@gmail.com>" | ||
], | ||
@@ -59,5 +62,5 @@ "main": "index", | ||
"scripts": { | ||
"test": "./node_modules/istanbul/lib/cli.js cover -- ./node_modules/.bin/_mocha tests/*.js --reporter spec", | ||
"test": "./node_modules/istanbul/lib/cli.js cover -- ./node_modules/.bin/_mocha tests/units/*.js --reporter spec", | ||
"lint": "node ./node_modules/.bin/jshint --config ./node_modules/yui-lint/jshint.json ./*.js ./lib/*.js" | ||
} | ||
} |
Express View | ||
============ | ||
[](https://travis-ci.org/yahoo/express-view) | ||
`express-view` ships with a custom `express` view class implementation which allows to control `res.render()` calls. Normally, `express` along with some specific view engine can do the work of compiling and rendering templates on the server side, but `express-view` span that to support the use of compiled-to-javascript templates that were already provisioned in memory thru a filesystem abstraction component like `locator`. | ||
@@ -62,1 +64,8 @@ | ||
[LICENSE file]: https://github.com/caridy/express-view/blob/master/LICENSE | ||
Contribute | ||
---------- | ||
See the [CONTRIBUTING.md file][] for more information. | ||
[CONTRIBUTING.md file]: https://github.com/express-view/blob/master/CONTRIBUTING.md |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
15410
9
71
1