initial commit
This commit is contained in:
28
lib/html/README.md
Normal file
28
lib/html/README.md
Normal file
@@ -0,0 +1,28 @@
|
||||
# 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.",
|
||||
"<html> is properly excaped.",
|
||||
},
|
||||
button(),
|
||||
},
|
||||
}
|
||||
```
|
Reference in New Issue
Block a user