没有合适的资源?快使用搜索试试~ 我知道了~
beardo:用于Node.js服务器项目的mustache模板实用程序
共30个文件
mustache:13个
js:12个
gitignore:1个
需积分: 9 0 下载量 5 浏览量
2021-05-13
06:49:30
上传
评论
收藏 18KB ZIP 举报
温馨提示
比奥多 具有布局意识的实用程序,用于处理。 将文件添加到可配置的模板目录中,然后使用beardo模块延迟和异步呈现它们。 渲染的输出将自动包括可传递的局部和布局。 相关模块: beardo-http:创建一个模板助手来响应http请求。 例子 要呈现胡子模板(包括任何部分),您可以使用相对于模板目录(带有或不.mustache扩展名)的模板的字符串名称。 var beardo = require('../') var dir = './templates' var template = beardo(dir) var context = { username: 'jxson' } template('user', context, function(err, output) { if (err) throw err console.log(output) }) 包含所有模
资源推荐
资源详情
资源评论
收起资源包目录
beardo-master.zip (30个子文件)
beardo-master
lib
read-queue.js 792B
template.js 699B
res-beardo.js 2KB
beardo.js 4KB
index.js 843B
.travis.yml 319B
test
test-beardo-set.js 335B
test-beardo.js 317B
test-res-template.js 6KB
test-template.js 2KB
test-beardo-render.js 3KB
templates
vanilla.mustache 603B
even-more-vanilla.mustache 840B
shared
header.mustache 35B
footer.mustache 92B
error.mustache 30B
layouts
text.mustache 31B
custom.mustache 179B
default.mustache 180B
quote.mustache 28B
coffee-ipsum.mustache 2KB
random-text.mustache 21B
more-vanilla.mustache 791B
teapot.mustache 30B
test-beardo-get.js 446B
index.js 118B
README.md 6KB
Makefile 658B
.gitignore 36B
package.json 907B
共 30 条
- 1
资源评论
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功