@mahaljs/html-compiler
v1.9.0
Published
Html compiler for mahal framework
Downloads
56
Maintainers
Readme
mahal-html-compiler
official Html compiler for mahal framework
Install
npm i @mahaljs/html-compiler
Doc
mahal-html-compiler exposes createRenderer
method which takes html string as input and convert it to a method which is used by mahal.js to create the html element.
import { createRenderer } from "@mahaljs/html-compiler";
const method = createRenderer(`<div>{{ujjwal}}</div>`);