没有合适的资源?快使用搜索试试~ 我知道了~
posthtml-include:包括HTML插件
共37个文件
html:25个
js:3个
json:2个
需积分: 10 0 下载量 112 浏览量
2021-04-27
14:52:39
上传
评论
收藏 99KB ZIP 举报
温馨提示
包括插件 安装 npm i -D posthtml-include 用法 const { readFileSync } = require ( 'fs' ) const posthtml = require ( 'posthtml' ) const include = require ( 'posthtml-include' ) const html = readFileSync ( 'index.html' ) posthtml ( [ include ( { encoding : 'utf8' } ) ] ) . process ( html ) . then ( ( result ) => console . log ( result . html ) ) 选项 root :包含的根文件夹路径。 默认./ 编码:默认utf-8 posthtmlExpression
资源推荐
资源详情
资源评论
收起资源包目录
posthtml-include-master.zip (37个子文件)
posthtml-include-master
.gitignore 40B
README.md 4KB
.github
workflows
nodejs.yml 785B
funding.yml 639B
test
fixtures
inner-locals-not-json.html 87B
not-clear-rest.html 127B
blocks
partial
phone.html 36B
button
button.html 63B
locals-not-json.html 96B
inner-locals.html 96B
basic.html 58B
locals.html 93B
inner-locals-big-json.html 20KB
includes
5.html 20KB
2.html 10B
4.html 189B
3.html 19B
1.html 69B
nested.html 72B
root.html 37B
test.js 2KB
expected
inner-locals-not-json.html 36B
not-clear-rest.html 195B
locals-not-json.html 34B
inner-locals.html 26B
basic.html 63B
locals.html 25B
inner-locals-big-json.html 13KB
nested.html 36B
root.html 63B
LICENSE 1KB
package.json 821B
xo.config.js 277B
.editorconfig 171B
lib
index.js 2KB
.nycrc 34B
package-lock.json 279KB
共 37 条
- 1
资源评论
sleepsoft
- 粉丝: 36
- 资源: 4634
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功