https://github.com/bahrus/o2h
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/bahrus/o2h
- Owner: bahrus
- License: mit
- Created: 2022-05-18T11:26:18.000Z (about 3 years ago)
- Default Branch: baseline
- Last Pushed: 2022-07-22T01:35:06.000Z (almost 3 years ago)
- Last Synced: 2024-12-31T23:11:51.096Z (5 months ago)
- Language: TypeScript
- Size: 563 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# o2h
Converts JavaScript Object into canonical HTML.
o2h supports a JSON-based configuration file / stream which can tailor the output.
o2h will typically be used on the server (e.g. in a CloudFlare Worker) or in a service worker, in order to generate output from an api in a format the browser can easily digest.
The JSON-based configuration will typically contain numerous hooks for custom element placeholder tags and slots, which can allow the client-side to progressively adjust the output.
TODO: support use of be-definitive for arrays.