{"id":18608699,"url":"https://github.com/kalabasa/compose-html","last_synced_at":"2025-04-10T22:30:53.048Z","repository":{"id":79171605,"uuid":"573550959","full_name":"Kalabasa/compose-html","owner":"Kalabasa","description":"Yet another static site generator","archived":false,"fork":false,"pushed_at":"2024-11-25T12:41:17.000Z","size":1020,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-04T23:48:44.545Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/Kalabasa.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-02T18:30:41.000Z","updated_at":"2025-04-03T23:43:49.000Z","dependencies_parsed_at":"2023-12-07T16:46:48.332Z","dependency_job_id":"e6f3ca6c-33b8-427c-82e0-ab7e7f9a0b81","html_url":"https://github.com/Kalabasa/compose-html","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kalabasa%2Fcompose-html","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kalabasa%2Fcompose-html/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kalabasa%2Fcompose-html/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kalabasa%2Fcompose-html/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kalabasa","download_url":"https://codeload.github.com/Kalabasa/compose-html/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248309369,"owners_count":21082199,"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":[],"created_at":"2024-11-07T03:03:56.390Z","updated_at":"2025-04-10T22:30:52.647Z","avatar_url":"https://github.com/Kalabasa.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# compose-html\n\nYet another static site generator.\n\n## A simple example\n\n### Source files\n\n```html\n\u003c!-- card.html --\u003e\n\u003cdiv class=\"card\"\u003e\n  \u003ch1\u003e{attrs.title}\u003c/h1\u003e\n  \u003cslot /\u003e\n\u003c/div\u003e\n```\n\n```html\n\u003c!-- page.html --\u003e\n\u003ccard title=\"Hello\"\u003e\n  \u003cp\u003eHello, world!\u003c/p\u003e\n  \u003cp\u003eHow's it going?\u003c/p\u003e\n\u003c/card\u003e\n```\n\n### Output file\n\n```html\n\u003c!-- out/page.html --\u003e\n\u003cdiv class=\"card\"\u003e\n  \u003ch1\u003eHello\u003c/h1\u003e\n  \u003cp\u003eHello, world!\u003c/p\u003e\n  \u003cp\u003eHow's it going?\u003c/p\u003e\n\u003c/div\u003e\n```\n\n## Status\n\nThis project is in very low maintenance mode. I'm looking to migrate to Astro anyway.\n\n## Syntax\n\n| Example | Description |\n|-|-|\n| `\u003cdiv {...attrs}` | Inherit attributes from current component. |\n| `\u003cscript client\u003e` | Run script in the client (normal script). |\n| `\u003cscript render\u003e` | Run script at build time and render the return value or output in place. | \n| `\u003cscript static\u003e` | Run script at build time (once per file). |\n| `` return attrs.myVar `` | In a render script, use `attrs` to access current component's attributes. | \n| `` return children.length `` | In a render script, use `children` to access current component's children for processing. (But use `\u003cslot\u003e` for rendering) | \n| `` return html`\u003cdiv\u003e` `` | In a render script, use the `html` tag to render HTML (processed further by compose-html). | \n| `` return raw`\u003cdiv\u003e` `` | In a render script, use the `raw` tag to render unprocessed HTML. | \n| `` `\u003cdiv ${spreadAttrs(map)}\u003e` `` | In a render script, use the `spreadAttrs` function to render multiple attributes. |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkalabasa%2Fcompose-html","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkalabasa%2Fcompose-html","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkalabasa%2Fcompose-html/lists"}