0

我是 Jade 的新手,我想知道如何运行 .jade 文件,我正在使用 Node.js 并安装了 Jade 节点模块.. 运行代码并在浏览器中找到它的下一步是什么?

4

1 回答 1

0

1) You must run your Node.js server on the command line.

$ node app.js

2) Go to your browser and use the port number that your server is running on. Generally you want to console.log the port number in your app.js file so the port is displayed on the command line.

localhost:3000

3) https://github.com/visionmedia/jade for examples and more documentation to get you off the ground.

于 2012-12-15T09:28:12.163 回答