{"id":22726846,"url":"https://github.com/smokingplaya/lua_pages_creator","last_synced_at":"2025-03-30T00:15:24.550Z","repository":{"id":208317309,"uuid":"720360599","full_name":"smokingplaya/lua_pages_creator","owner":"smokingplaya","description":"🦖 A utility that allows you to create Web Pages using Lua.","archived":false,"fork":false,"pushed_at":"2023-11-21T20:50:05.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-05T01:48:34.204Z","etag":null,"topics":["css","html","lua","luapower","luapowered","w3c","web"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/smokingplaya.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-11-18T08:37:19.000Z","updated_at":"2024-02-04T08:29:48.000Z","dependencies_parsed_at":"2023-11-21T21:41:38.672Z","dependency_job_id":null,"html_url":"https://github.com/smokingplaya/lua_pages_creator","commit_stats":null,"previous_names":["smokingplaya/page_creator","smokingplaya/lua_pages_creator","666shit666/lua_pages_creator"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smokingplaya%2Flua_pages_creator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smokingplaya%2Flua_pages_creator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smokingplaya%2Flua_pages_creator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smokingplaya%2Flua_pages_creator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smokingplaya","download_url":"https://codeload.github.com/smokingplaya/lua_pages_creator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246258873,"owners_count":20748573,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["css","html","lua","luapower","luapowered","w3c","web"],"created_at":"2024-12-10T17:07:08.901Z","updated_at":"2025-03-30T00:15:24.501Z","avatar_url":"https://github.com/smokingplaya.png","language":"Lua","readme":"\u003ch1 align=\"center\"\u003eLua Pages Creator\u003c/h1\u003e\n\u003ch2 align=\"center\"\u003e\n\nLPC is a Lua-script that allows you to create static web pages using Lua objects, which makes web development much easier.\n\n\u003cimg src=\"https://img.shields.io/badge/LUA POWERED-2C2D72?style=for-the-badge\u0026logo=lua\u0026logoColor=white\"\u003e\n\u003c/h2\u003e\n\n### Code Example\n\n```lua\n-- example.lua\nlocal lpc_gui = require(\"libs.base_gui\")\n\nlocal page = lpc_gui.create_element(\"html\")\n\nlocal head = page:Add(\"head\")\n    :Include(\"style.css\", \"css\")\n    :Add(\"title\", \"Example Title\")\n\nlocal body = page:Add(\"body\")\n\nbody.center_div = body:Add(\"div\")\n    :SetSize(\"50vw\", \"50vh\")\n    :SetBackgroundColor(\"gray\")\n    :SetBorderRadius(\"16px\")\n    :Center()\n\nbody.text = body.center_div:Add(\"h1\", \"Example Text\")\n    :SetFont(\"Roboto\")\n    :SetFontSize(\"24px\")\n    :SetColor(\"white\")\n    :Center()\n\nreturn page\n```\n\n### How to work with LPC?\n(You must have Lua installed)\n\n1. Create a *.lua file in the root directory of the LPC (this is where the main.lua file is located).\n2. Write your page code according to the [documentation](DOCS.md) in the newly created file.\n3. Type the command lua main.lua * (where * is the name of the file you created; for example lua main.lua example.lua) into the terminal\n4. Go to the output/* directory and find the files of your project.\n\nDone!","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmokingplaya%2Flua_pages_creator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmokingplaya%2Flua_pages_creator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmokingplaya%2Flua_pages_creator/lists"}