Node.js log3:create ejs engine and jade engine

The base condition is ensure that you have  installed express.

1、create   ejs engine

Using windows dos with command into  the contents and write below's commands:

express -e   ejs   microblog

2、create jade engine

Using windows dos with command into the contents and write below's commands:

express -t   ejs   microblog

3、show result views

Create project microblog sucess!The jade engine create views like as above's views.

4、the link to study  node.js

why the command :express -t ejs microblog  installed jade engine.

You can find the answer from here :https://github.com/visionmedia/express/blob/master/bin/express   

原文地址:https://www.cnblogs.com/boonya/p/3387066.html