Skip to content
Myr

changed -css, --template to --stylus, --ejs

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

we can add more as we go

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent 426ba62 · Browse files · 1 file+13 added−2 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+13 added−2 removed

  • other:+13 added−2 removed

1 file+13 added−2 removed

modified:bin/express+13 added-2 removed
12 unmodified lines
1314program15 .version(express.version)16 .option('-s, --sessions', 'add session support')17 .option('-t, --template <engine>', 'add template <engine> support (jade|ejs) [jade]', 'jade')18 .option('-c, --css <engine>', 'add stylesheet <engine> support (less|sass|stylus) [plain css]')17 .option('-e, --ejs', 'add ejs support (defaults to jade)')18 .option('-S, --stylus', 'add stylus support')19 .parse(process.argv);2021// Path2223var path = program.args.shift() || '.';2425// Template engine2627program.template = 'jade';28if (program.ejs) program.template = 'ejs';2930// Stylesheet engine3132program.css = program.stylus33 ? 'stylus'34 : null;3536/**37 * Jade layout template.38 */39
292 unmodified lines