Skip to content

ujjwalguptaofficial/mahal-html-compiler

Repository files navigation

TEST npm version

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