nodejs---express中模板引擎consolidate及路由route簡單使用總結

consolidate是express中的一個模板引擎的結合體。包括了經常使用的jade和ejs。 配置模板引擎及使用方法以下: 1.模板引入----const consolidate = require('consolidate');javascript 2.設置模板輸出形式爲:html頁面---server.set('view engine', 'html');html 3.設置模板文件位置-
相關文章
相關標籤/搜索