rollup-plugin-ij2tpl
v1.0.0
Published
A simple IJ2TPL loader for rollupjs
Downloads
4
Readme
Rollup-Plugin-IJ2TPL
Usage:
// rollup.config.js
import { IJ2Loader } from 'rollup-plugin-ij2tpl';
export default {
...
plugins: [ IJ2Loader({ij2tplPath: '../node_modules/ij2tpl/ij2tpl', prefix: '${', suffix: '}'}) ]
...
};
// test.js
import { template as testTemplate } from './templates/test.ij2.html';
<!-- templates/test.ij2.html -->
<div id="content" class="container">
<p>Hello World!</p>
</div>