【文件属性】:
文件名称:dotify:用于 doT.js 的 Browserify 转换插件
文件大小:4KB
文件格式:ZIP
更新时间:2021-07-02 16:24:41
JavaScript
打点
用于Browserify 转换插件。
安装
npm install dotify
用法
在 main.js 中:
var tpl = require ( './template.dot' ) ;
var output = tpl ( { message : 'Hello World!' } ) ;
console . log ( output ) ;
然后编译脚本:
$ browserify -t dotify main.js
您还可以将选项传递给 doT.js 编译器,例如保留空格:
$ browserify -t [ dotify --no-strip ] main.js
执照
麻省理工学院
【文件预览】:
dotify-master
----.gitignore(31B)
----package.json(429B)
----LICENSE(1023B)
----README.md(474B)
----example()
--------package.json(246B)
--------template.dot(50B)
--------index.html(162B)
--------entry.js(147B)
----dotify.js(649B)
----.npmignore(8B)