{"id":21168044,"url":"https://github.com/rokf/lua-html","last_synced_at":"2026-07-03T20:31:09.277Z","repository":{"id":167867049,"uuid":"103032706","full_name":"rokf/lua-html","owner":"rokf","description":"Generate HTML from tables","archived":false,"fork":false,"pushed_at":"2017-10-14T17:58:45.000Z","size":4,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-27T05:37:02.391Z","etag":null,"topics":["generator","html"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rokf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2017-09-10T13:47:14.000Z","updated_at":"2021-05-21T07:15:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"13f53f2e-1f60-425a-8ea0-da92578fe7b5","html_url":"https://github.com/rokf/lua-html","commit_stats":null,"previous_names":["rokf/lua-html"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rokf/lua-html","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rokf%2Flua-html","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rokf%2Flua-html/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rokf%2Flua-html/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rokf%2Flua-html/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rokf","download_url":"https://codeload.github.com/rokf/lua-html/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rokf%2Flua-html/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35101088,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-03T02:00:05.635Z","response_time":110,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["generator","html"],"created_at":"2024-11-20T15:05:33.794Z","updated_at":"2026-07-03T20:31:09.270Z","avatar_url":"https://github.com/rokf.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch3 align=\"center\"\u003elua-html\u003c/h1\u003e\n\nThis is a Lua 5.1 / LuaJIT module which can generate HTML\nby combining functions, tables and their metatables.\n\nIt uses the `__index` metatable field to replace undefined\nfunction calls with HTML strings.\n\nThe metatable of the module itself has a `__call` field.\nAfter the module is required it can be called as a function.\n\nThe function accepts three arguments. A function,\na data table (optional) and a custom environment table (optional).\nThe function runs inside a custom\nenvironment so you can still get those `undefined` errors\noutside of it.\n\nEvery function which doesn't exist inside the environment\ngets replaced by a HTML element (string) with its name. It accepts\na table. Key - value pairs are turned into attributes, the rest is\nconverted into a string and put inside the element.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frokf%2Flua-html","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frokf%2Flua-html","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frokf%2Flua-html/lists"}