jhtmls-loader

jhtmls template for webpack

Usage no npm install needed!

<script type="module">
  import jhtmlsLoader from 'https://cdn.skypack.dev/jhtmls-loader';
</script>

README

jhtmls-loader


npm

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);

LICENSE MIT