![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
nodejs
SunnyDai2016
这个作者很懒,什么都没留下…
展开
-
Mac 安装及配置NVM
NVM是 Node Version Manager 的缩写,是Mac环境下管理Node的工具。安装NVM在安装nvm之前需要安装Xcode命令工具xcode-select --install使用 curl 安装curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash...原创 2019-09-20 11:25:43 · 1557 阅读 · 0 评论 -
nodejs之koa配置koa-views中间件
const Koa = require("koa");const KoaViews = require("koa-views");let mKoa = new Koa();mKoa.use(KoaViews(__dirname + "/views", { map: { html: "pug" }}));原创 2019-09-12 17:24:08 · 1234 阅读 · 0 评论 -
nodejs之koa配置nunjucks中间件
const Koa = require("koa");const nunjucks = require("koa-nunjucks-2");let mKoa = new Koa();mKoa.use(nunjucks({ ext: "html", path: __dirname + "/views", nunjucksConfig: { trimBl...原创 2019-09-12 17:27:18 · 462 阅读 · 0 评论