{"id":15664549,"url":"https://github.com/luwes/super-template","last_synced_at":"2025-06-28T11:32:44.748Z","repository":{"id":67976450,"uuid":"604265532","full_name":"luwes/super-template","owner":"luwes","description":"🦸‍♂️ Build-less template inheritance in the browser. Handy for example or demo pages. ","archived":false,"fork":false,"pushed_at":"2023-03-25T00:59:29.000Z","size":45,"stargazers_count":16,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-10T12:56:22.187Z","etag":null,"topics":["html","template","template-engine"],"latest_commit_sha":null,"homepage":"https://supertemplate.vercel.app/examples/","language":"JavaScript","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/luwes.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":"2023-02-20T17:26:52.000Z","updated_at":"2024-03-09T21:10:38.000Z","dependencies_parsed_at":"2023-03-25T14:33:28.809Z","dependency_job_id":null,"html_url":"https://github.com/luwes/super-template","commit_stats":null,"previous_names":["luwes/template-extends"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/luwes/super-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luwes%2Fsuper-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luwes%2Fsuper-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luwes%2Fsuper-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luwes%2Fsuper-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luwes","download_url":"https://codeload.github.com/luwes/super-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luwes%2Fsuper-template/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262421846,"owners_count":23308527,"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":["html","template","template-engine"],"created_at":"2024-10-03T13:43:13.369Z","updated_at":"2025-06-28T11:32:44.729Z","avatar_url":"https://github.com/luwes.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Super Template\n\nBuild-less template inheritance in the browser. Handy for example or demo pages. \n\n## Usage ([Codesandbox](https://codesandbox.io/s/super-template-8n3ci9]))\n\n- `\u003c!doctype html\u003e` is required in the child template because it's not\n  possible to dynamically change the doctype of a loaded HTML file.\n- The `link[rel=preload]` ensures the base html files are fetched in parallel \n  with the script file. It's optional but recommended for faster page loads.\n\n### layout.html\n\n```html\n\u003ctemplate block=\"head\"\u003e\n  \u003clink rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/water.css@2/out/water.css\"\u003e\n  \u003cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1\"\u003e\n\u003c/template\u003e\n\n\u003cmain\u003e\n  \u003cheader\u003eheader\u003c/header\u003e\n  \u003ctemplate block=\"content\"\u003e\u003c/template\u003e\n  \u003cfooter\u003efooter\u003c/footer\u003e\n\u003c/main\u003e\n```\n\n### index.html\n\n```html\n\u003c!doctype html\u003e\n\n\u003cscript type=\"module\" src=\"https://cdn.jsdelivr.net/npm/super-template\"\u003e\u003c/script\u003e\n\u003clink rel=\"preload\" href=\"./layout.html\" as=\"fetch\" crossorigin\u003e\n\n\u003ctitle\u003eSuper Template Demo\u003c/title\u003e\n\n\u003ctemplate extends=\"./layout.html\"\u003e\n  \u003ctemplate block=\"head\"\u003e\n    {{super}}\n    \u003cscript type=\"module\" src=\"https://cdn.jsdelivr.net/npm/media-chrome/+esm\"\u003e\u003c/script\u003e\n  \u003c/template\u003e\n\n  \u003ctemplate block=\"content\"\u003e\n    \u003ch1\u003eSuper Template\u003c/h1\u003e\n    \u003cp\u003eBuild-less template inheritance in the browser. Handy for example or demo pages.\u003c/p\u003e\n  \u003c/template\u003e\n\u003c/template\u003e\n```\n\n## Related\n\n- [Template Extensions](https://github.com/luwes/template-extensions)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluwes%2Fsuper-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluwes%2Fsuper-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluwes%2Fsuper-template/lists"}