https://github.com/thatonegin/ganiton
Library for HTML generation and JSON parsing.
https://github.com/thatonegin/ganiton
html json library lua
Last synced: about 2 months ago
JSON representation
Library for HTML generation and JSON parsing.
- Host: GitHub
- URL: https://github.com/thatonegin/ganiton
- Owner: ThatOneGin
- License: mit
- Created: 2025-04-02T22:52:28.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-15T21:24:41.000Z (about 1 year ago)
- Last Synced: 2025-04-15T22:27:20.397Z (about 1 year ago)
- Topics: html, json, library, lua
- Language: Lua
- Homepage:
- Size: 12.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ganiton
### A library that has HTML generation, preprocessing and JSON parsing
**Disclaimer: this library is inspired by [LuaXMLGenerator](https://github.com/TheLuaOSProject/LuaXMLGenerator/)**
# Dependencies
- luasocket (required for socket module)
# Installation
Copy and paste ganiton.lua in whatever folder you want and import it.
```lua
local ganiton = require("path.to.ganiton")
-- very cool stuff here
```
# Modules
- [Socket](./docs/socket.md) Test things in a localhost.
- [JSON](./docs/json.md) JSON parsing.
- [HTML](./docs/html.md) HTML generation.
- [IO](./docs/io.md) Input output functions.
- [DB](./docs/db.md) Read and write data from disk.
- [Gton](./docs/preprocessor.md) Write Lua inside HTML.
# Todos
1. Lua tables to Cascading style sheets.
2. Support for multiple preprocessor tags.
3. More examples.