Skip to content
Myr

fixed "view options" support

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 4780168 · Browse files · 2 files+4 added−4 removed
This commit

State

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

Diff stats

2 files+4 added−4 removed

  • tests:+3 added−3 removed
  • other:+1 added−1 removed

2 files+4 added−4 removed

modified:lib/express/view.js+1 added-1 removed
371 unmodified lines
372 , dynamicHelpers = app.dynamicViewHelpers373 , viewOptions = app.settings['view options'];374375 // Mixin "view options"376 if (viewOptions) options.__proto__ = viewOptions;376 if (viewOptions) options = merge(clone(viewOptions), options);377378 // Defaults379 var self = this380 , root = viewRoot(this.app)
79 unmodified lines
modified:test/view.test.js+3 added-3 removed
727 unmodified lines
728 'test "view options"': function(){729 var app = create();730 731 app.set('view options', {732 layout: false,733 open: '{{',734 close: '}}'732 layout: false733 , open: '{{'734 , close: '}}'735 });736 737 app.get('/', function(req, res, next){738 res.render('user.ejs', {
35 unmodified lines