没有合适的资源?快使用搜索试试~ 我知道了~
hapi-nunjucks-wrapper:一个简单的包装器,可让您将 Nunjucks 用作 Hapi 模板引擎。 基于 se...
共25个文件
html:14个
js:7个
json:2个
需积分: 5 0 下载量 196 浏览量
2021-06-12
15:25:18
上传
评论
收藏 12KB ZIP 举报
温馨提示
hapi-nunjucks 一个简单的包装器,可让您将 Nunjucks 用作 Hapi 模板引擎。 基于项目。 用法 以下示例将让您在 Hapi 中使用 Nunjucks 模板,包括模板继承。 这假设: 您的模板位于名为“views”的目录中 他们有扩展名“html” 你有一个名为“mytemplate”的模板文件 var Hapi = require ( 'hapi' ) var Path = require ( 'path' ) var server = new Hapi . Server ( ) server . connection ( { port : 5000 , host : 'localhost' } ) // set up templates server . views ( { engines : { html : require ( 'hapi-
资源推荐
资源详情
资源评论
收起资源包目录
hapi-nunjucks-wrapper-master.zip (25个子文件)
hapi-nunjucks-wrapper-master
example
simple.js 723B
package.json 280B
views
my-template-1.html 173B
layouts
default.html 172B
include-file.html 23B
my-template-3.html 185B
base.html 134B
my-template-2.html 171B
layouts.js 814B
filters.js 1KB
index.js 1KB
package.json 834B
test
tests
3-in-hapi.js 3KB
1-configure.js 437B
2-compile.js 1KB
views
3-in-hapi-2.html 25B
include-file.html 23B
3-in-hapi-1.html 15B
mytemplate2.html 171B
base.html 91B
3-in-hapi-3.html 83B
mytemplate.html 173B
3-in-hapi-4.html 117B
.gitignore 52B
README.md 2KB
共 25 条
- 1
资源评论
Mia不大听话
- 粉丝: 18
- 资源: 4592
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功