https://github.com/nicell/htmluau
HTML Templating in Luau
https://github.com/nicell/htmluau
html luau templates
Last synced: 4 months ago
JSON representation
HTML Templating in Luau
- Host: GitHub
- URL: https://github.com/nicell/htmluau
- Owner: Nicell
- License: mit
- Created: 2025-05-09T06:13:30.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-05-15T22:13:06.000Z (5 months ago)
- Last Synced: 2025-06-16T07:59:32.277Z (4 months ago)
- Topics: html, luau, templates
- Language: Luau
- Homepage:
- Size: 9.77 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# HTMLuau
Simple HTML templating in Luau.
```luau
html({ lang = "en" }) {
head() {
title() {
"Hello World",
},
},
body() {
h1() {
"Hello World",
},
button({ onclick = "alert('Hello World!')" }) {
"Click Me",
},
p() {
"This is a simple HTML page generated using Luau.",
"Lines are concatenated.",
"So you can write sentences on separate lines.",
" is properly excaped.",
},
button(),
},
}
```