npm-html2js:npm-html2js

时间:2021-07-19 21:35:30
【文件属性】:
文件名称:npm-html2js:npm-html2js
文件大小:8KB
文件格式:ZIP
更新时间:2021-07-19 21:35:30
JavaScript npm-html2js 使用 npm 作为构建工具将所有 jade/html 模板加载到 $templateCache 中。 npm-html2js --prefix foo file.jade angular.module( ' template.js ' , []) ; .run([ ' $templateCache ' , function( $templateCache ) { . $templateCache .put( ' foo/file.jade ' , '
\n ' + '

Hello World from file1!

\n ' + '
' ) . $templateCache .put( ' files/file2.tpl.jade ' , '
\n ' +
【文件预览】:
npm-html2js-master
----.travis.yml(110B)
----bin()
--------npm-html2js.js(353B)
----example()
--------output()
--------files()
----package.json(805B)
----test()
--------output()
--------html2js.spec.js(876B)
----src()
--------index.js(1KB)
----.gitignore(23B)
----tmpl()
--------templateCache.tmpl(34B)
--------usage.md(307B)
--------templateModule.tmpl(86B)
----README.md(758B)
----.jshintrc(437B)

网友评论