Express Generator Without Jade

后端 未结 6 1210
南方客
南方客 2021-02-07 03:46

I am trying to generate an express skeleton, using the express generator. So it would be this:

$ npm install express-generator -g

However, it

6条回答
  •  情话喂你
    2021-02-07 04:17

    You can check the documentation Express-Generator.

    As you can see with express -h the view engine suported by express generator are (ejs|hbs|hjs|jade|pug|twig|vash), but by deafult jade is suported.

    $ express -h

    Usage: express [options][dir]

    Options:

    -h, --help          output usage information
        --version       output the version number
    -e, --ejs           add ejs engine support
        --hbs           add handlebars engine support
        --pug           add pug engine support
    -H, --hogan         add hogan.js engine support
    -v, --view  add view  support (ejs|hbs|hjs|jade|pug|twig|vash) (defaults to jade)
    -c, --css   add stylesheet  support (less|stylus|compass|sass) (defaults to plain css)
        --git           add .gitignore
    -f, --force         force on non-empty directory
    

提交回复
热议问题