tickplate:JavaScript的反引号模板引擎engine

时间:2021-04-27 21:06:58
【文件属性】:
文件名称:tickplate:JavaScript的反引号模板引擎engine
文件大小:25KB
文件格式:ZIP
更新时间:2021-04-27 21:06:58
nodejs javascript html console template Tickplate-JavaScript的反勾号模板 用法 安装: npm install tickplate 要求: const t = require('tickplate'); 将标签t放在模板字符串之前 例子: const t = require ( 'tickplate' ) ; const data = { hello : 'Ave!' , myFriend : { name : 'Marcus Aurelius' , toString ( ) { return this . name ; } , } , positions : [ 'emperor' , 'philosopher' , 'writer' ] , } ; const templ = t ` ${ 'hello' } ${ 'myFriend' } , g
【文件预览】:
tickplate-master
----test.js(698B)
----package.json(1KB)
----.eslintrc.json(268B)
----.github()
--------FUNDING.yml(22B)
--------PULL_REQUEST_TEMPLATE.md(294B)
--------ISSUE_TEMPLATE()
--------workflows()
----.prettierrc(154B)
----SECURITY.md(543B)
----LICENSE(1KB)
----package-lock.json(57KB)
----CONTRIBUTING.md(1KB)
----tickplate.js(275B)
----.npmignore(29B)
----AUTHORS(222B)
----.gitignore(29B)
----CHANGELOG.md(372B)
----README.md(1KB)
----.editorconfig(207B)
----.gitattributes(8B)

网友评论