Skip to content
Myr

Use path.resolve for views dir instead of concat

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

closes #2165

authored by Nick Heiner · committed by Douglas Christopher Wilson · parent ad05eb8 · Browse files · 1 file+2 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+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:lib/application.js+2 added-1 removed
12 unmodified lines
13var http = require('http');14var compileETag = require('./utils').compileETag;15var compileTrust = require('./utils').compileTrust;16var deprecate = require('./utils').deprecate;17var resolve = require('path').resolve;1819/**20 * Application prototype.21 */
52 unmodified lines
74 this.locals.settings = this.settings;7576 // default configuration77 this.set('view', View);77 this.set('views', process.cwd() + '/views');78 this.set('views', resolve('views'));79 this.set('jsonp callback name', 'callback');8081 if (env === 'production') {82 this.enable('view cache');
467 unmodified lines