ujjwalguptaofficial / mahal-html-compiler

html compiler for mahal framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

html compiler for mahal framework

License:Apache License 2.0


Languages

Language:TypeScript 67.2%Language:PEG.js 24.9%Language:JavaScript 7.6%Language:HTML 0.3%