open-index/open-npm huggingface dataset:
npm package: @mahaljs/html-compiler
Description: Html compiler for mahal framework
Author: Ujjwal Gupta
Latest version: 1.9.0

[![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(`<div>{{ujjwal}}</div>`);
```
npm package: @mahaljs/router
Description: The official router for mahal framework.
Author: Ujjwal Gupta
Latest version: 1.2.3

[![npm version](https://badge.fury.io/js/@mahaljs%2Frouter.svg)](https://badge.fury.io/js/@mahaljs%2Frouter)
[![TEST](https://github.com/ujjwalguptaofficial/mahal-router/actions/workflows/test.yml/badge.svg)](https://github.com/ujjwalguptaofficial/mahal-router/actions/workflows/test.yml)

# mahal-router

Official router plugin for [Mahal framework](https://github.com/ujjwalguptaofficial/mahal)

# Install

```
npm i @mahaljs/router
```

# Setup

```
import { Timer, Mahal } from "mahal";
import Root from "./components/root.mahal";
import { RouterPlugin, Router } from "@mahaljs/router";
import { routes } from "./routes";

const router = new Router(routes, {
    mode: "history"
});

const app = new Mahal(Root, '#app');
// add router as plugin
app.extend.plugin(RouterPlugin, router);

app.create();

```

# Docs

https://mahaljs.com/docs/router/
npm package: @mahaljs/store
Description: Store module for mahal framework.
Author: Ujjwal Gupta
Latest version: 1.3.3

[![OSNFT](https://img.shields.io/badge/OSNFT-Buy%20NFT-yellowgreen)](https://osnft.app/nft/mahal-store@ujjwalguptaofficial)
[![npm version](https://badge.fury.io/js/@mahaljs%2Fstore.svg)](https://badge.fury.io/js/@mahaljs%2Fstore)
[![TEST](https://github.com/ujjwalguptaofficial/mahal-store/actions/workflows/test.yml/badge.svg)](https://github.com/ujjwalguptaofficial/mahal-store/actions/workflows/test.yml)

# mahal-store

Store module for [mahal framework](https://github.com/ujjwalguptaofficial/mahal)

# Install

```
npm i @mahaljs/store
```

# Setup

```
import { Mahal } from "mahal";
import Main from "@/components/main.mahal";
import MahalStore from "@mahaljs/store";
import store from "@/store";

export const app = new Mahal(Main, '#app');

// add mahal store as plugin
app.extend.plugin(MahalStore, store);

app.create();

```

# Docs

https://mahaljs.com/docs/store/