Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 1 month 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 (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-04-21T16:48:20.000Z (over 1 year ago)
- Last Synced: 2024-12-05T23:32:03.796Z (about 1 month 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
[![TEST](https://github.com/ujjwalguptaofficial/mahal-html-compiler/actions/workflows/test.yml/badge.svg)](https://github.com/ujjwalguptaofficial/mahal-html-compiler/actions/workflows/test.yml)
[![npm version](https://badge.fury.io/js/@mahaljs%2Fhtml-compiler.svg)](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}}`);
```