2
2

More than 5 years have passed since last update.

Express で ejs のつもりなのに jade が入っちゃう時

Last updated at Posted at 2012-12-26
$ express -t ejs myapp

で ejs を入れたつもりが、views/index.jade とかが入っちゃう。

$ express -tejs myapp
            ^スペース空けない

と、正しく ejs が使われる。

なんなのよこれ。express が rc だから?

0:51追記

あーっ、ヘルプ見たら express -e myapp が正しいのね。

$ express -h

Usage: express [options]

Options:

-h, --help output usage information
-V, --version output the version number
-s, --sessions add session support
-e, --ejs add ejs engine support (defaults to jade)
-J, --jshtml add jshtml engine support (defaults to jade)
-H, --hogan add hogan.js engine support
-c, --css add stylesheet support (less|stylus) (defaults to plain css)
-f, --force force on non-empty directory

環境

  • Mac OS X 10.8.2
  • node v0.9.2
  • express 3.0.0rc5
2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2