https://github.com/ujjwalguptaofficial/mahal-html-compiler
html compiler for mahal framework
https://github.com/ujjwalguptaofficial/mahal-html-compiler
compiler html mahal mahal-framework
Last synced: about 2 months ago
JSON representation
html compiler for mahal framework
- Host: GitHub
- URL: https://github.com/ujjwalguptaofficial/mahal-html-compiler
- Owner: ujjwalguptaofficial
- License: apache-2.0
- Created: 2021-02-07T14:34:35.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-04-21T16:48:20.000Z (over 2 years ago)
- Last Synced: 2025-03-24T01:36:23.171Z (7 months ago)
- Topics: compiler, html, mahal, mahal-framework
- Language: TypeScript
- Homepage:
- Size: 669 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/ujjwalguptaofficial/mahal-html-compiler/actions/workflows/test.yml)
[](https://badge.fury.io/js/@mahaljs%2Fhtml-compiler)# mahal-html-compiler
official Html compiler for [mahal framework](https://github.com/ujjwalguptaofficial/mahal)
# 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(`{{ujjwal}}`);
```