Skip to content
Myr

Merge branch 'master' of github.com:visionmedia/express

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 · parents 8f4cd13, 80c814c · Browse files · 2 files+5 added−7 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+5 added−7 removed

  • other:+5 added−7 removed

2 files+5 added−7 removed

modified:bin/express+4 added-4 removed
17 unmodified lines
18 .version(version)19 .option('-s, --sessions', 'add session support')20 .option('-e, --ejs', 'add ejs engine support (defaults to jade)')21 .option('-J, --jshtml', 'add jshtml engine support (defaults to jade)')22 .option('-h, --hjs', 'add hogan.js engine support')22 .option('-h, --hogan', 'add hogan.js engine support')23 .option('-c, --css <engine>', 'add stylesheet <engine> support (less|stylus) (defaults to plain css)')24 .option('-f, --force', 'force on non-empty directory')25 .parse(process.argv);26
9 unmodified lines
3637program.template = 'jade';38if (program.ejs) program.template = 'ejs';39if (program.jshtml) program.template = 'jshtml';40if (program.hjs) program.template = 'hjs';40if (program.hogan) program.template = 'hjs';4142/**43 * Routes index template.44 */
81 unmodified lines
126127/**128 * Hogan.js index template.129 */130var hjsIndex = [130var hoganIndex = [131 '<!DOCTYPE html>'132 , '<html>'133 , ' <head>'134 , ' <title>{{ title }}</title>'
159 unmodified lines
294 write(path + '/views/layout.jshtml', jshtmlLayout);295 write(path + '/views/index.jshtml', jshtmlIndex);296 break;297 case 'hjs':298 write(path + '/views/index.hjs', hjsIndex);298 write(path + '/views/index.hjs', hoganIndex);299 break;300301 }302 });
101 unmodified lines
modified:lib/application.js+1 added-3 removed
11/**2 * Module dependencies.3 */45var connect = require('connect')6 , Router = require('./router')8 , methods = Router.methods.concat('del', 'all')7 , methods = Router.methods8 , middleware = require('./middleware')9 , debug = require('debug')('express:application')10 , locals = require('./utils').locals11 , View = require('./view')
413 unmodified lines
425426app.all = function(path){427 var args = arguments;428 methods.forEach(function(method){430 if ('all' == method || 'del' == method) return;429 app[method].apply(this, args);430 }, this);431 return this;432};
100 unmodified lines