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.
- Host: GitHub
- URL: https://github.com/compositejs/hje
- Owner: compositejs
- License: mit
- Created: 2020-05-12T12:53:06.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2026-01-02T15:37:47.000Z (5 months ago)
- Last Synced: 2026-01-02T18:16:24.970Z (5 months ago)
- Topics: html, mvvm, rendering-engine, template
- Language: TypeScript
- Homepage: https://hje.js.org
- Size: 2.5 MB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Security: SECURITY.md
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.