Skip to content

bk20x/lua-htmlgen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

lua-htmlgen

single file module for generating html in lua

local page = html {
    head {
        title {
            "Yoben from lua!!!"
        },
        style {
            h1 = {
                "color: #fff;",
                "font-family: Iosevka;",
                "text-align: center;"
            },
            body = {
                "background-color: #1e202a;"
            }
        }
    },
    body {
        h1 {
            "Some fat text"
        },
        button {
            onclick = "alert(1);",
            "Click me!"
        }
    }
}

About

Generate html declaratively in lua.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages