official Html compiler for mahal framework
npm i @mahaljs/html-compiler
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>`);