Skip to content

Nicell/htmluau

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTMLuau

Simple HTML templating in 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(),
	},
}

About

HTML Templating in Luau

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages