Skip to content
Myr

refactored view.js

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent 4efb25d · Browse files · 1 file+7 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+7 added−1 removed

  • other:+7 added−1 removed

1 file+7 added−1 removed

modified:lib/view/view.js+7 added-1 removed
15 unmodified lines
16 , fs = require('fs')17 , stat = fs.statSync;1819/**20 * Expose `View`.21 */2223exports = module.exports = View;2425/**26 * Require cache.27 */2829var cache = {};
5 unmodified lines
35 * @param {Object} options36 * @api private37 */3833var View = exports = module.exports = function View(view, options) {39function View(view, options) {40 options = options || {};41 this.view = view;42 this.root = options.root;43 this.relative = false !== options.relative;
162 unmodified lines