compile html to javascript code.
You need only one of HTML file to render lots of data...
It uses document.appendChild
instead of document.write
Difference between appendChild and document.write
import { transform } from 'pollu';
writeFileSync('index.js', transform('<div>Hello World</div>').js);
<script src="index.js"></script>
output: Hello World
see example in playground
<script src="https://unpkg.com/pollu/dist/browser.js" type="module"></script>
// check browser support
console.log(window.Pollu.transform);