An open API service indexing awesome lists of open source software.

https://github.com/compositejs/hje

A JavaScript library to generate HTML view by JSON.
https://github.com/compositejs/hje

html mvvm rendering-engine template

Last synced: 3 months ago
JSON representation

A JavaScript library to generate HTML view by JSON.

Awesome Lists containing this project

README

          

# Hyper-JSON Engine

This is a javascript library to generate HTML view by JSON.

## Installation and Usage

You can install this by [npm](https://www.npmjs.com/package/hje).

```sh
npm i hje
```

And you can also insert the [JavaScript bundled file](https://unpkg.com/hje/dist/index.js) by `script` tag into your web page directly and use `Hje` namespace to access.

[Click here](https://github.com/compositejs/hje/wiki/installation) to read more.

## Features

Hyper-Json Engine (Hje) provides a way to describe the view by JavaScript with event and binding. It can render to HTML or customized view by the description model.

- [JSON → HTML](https://github.com/compositejs/hje/wiki/tohtml)
- [Component](https://github.com/compositejs/hje/wiki/component)

## Building / Testing

You need install `gulp` and `tsc` to build. Following is the command line to build this project including the source and test cases.

```sh
npm run-script build
```

You can run all test cases after building by following command line.

```sh
npm test
```

## Readme in other languages

- [简体中文](https://github.com/compositejs/hje/wiki/shuoming)

## License

This project is [MIT Licensed](./LICENSE).

Please feel free to import this into your project. And you can also clone or fork the repository as you want.