https://github.com/oklar/htmb
A language agnostic hypertext markup builder
https://github.com/oklar/htmb
htmb html hypertext markup
Last synced: 30 days ago
JSON representation
A language agnostic hypertext markup builder
- Host: GitHub
- URL: https://github.com/oklar/htmb
- Owner: oklar
- Created: 2025-03-10T18:32:02.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-10-25T15:15:39.000Z (4 months ago)
- Last Synced: 2026-01-08T06:50:15.377Z (about 1 month ago)
- Topics: htmb, html, hypertext, markup
- Language: C
- Homepage:
- Size: 68.4 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# HTMB - Hypertext Markup Builder
A minimalistic library for building HTML structures using pure functions. HTMB provides a clean, simple API for generating HTML for as many programming languages as possible.
## Implementations
HTMB is available in multiple languages:
- [C](c/)
- [C#](cs/HtmbLibrary/)
- [JavaScript](js/)
- [...?](https://github.com/oklar/htmb/pulls)
## Core Concept
HTMB uses a functional approach to HTML generation, representing elements as function calls:
```
// Pseudocode example
div(
h1("Hello World"),
p("Welcome to HTMB")
)
```
This produces HTML like:
```html
Hello World
Welcome to HTMB
```
## License
MIT