README
jhtmls-loader
jhtmls 模版的 webpack 预编译 loader
安装
$ npm install jhtmls-loader
https://github.com/zswang/jhtmls)
说明 (模版具体用法请看var data = {...};
var render = require('jhtmls!./template.html'); // 返回渲染函数
document.body.innerHTML = render(data);
jhtmls template for webpack
<script type="module">
import jhtmlsLoader from 'https://cdn.skypack.dev/jhtmls-loader';
</script>
jhtmls 模版的 webpack 预编译 loader
$ npm install jhtmls-loader
var data = {...};
var render = require('jhtmls!./template.html'); // 返回渲染函数
document.body.innerHTML = render(data);