An open API service indexing awesome lists of open source software.

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

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(),
},
}
```