{"id":18263141,"url":"https://github.com/vanillawc/wc-template","last_synced_at":"2025-06-26T12:05:39.630Z","repository":{"id":101920828,"uuid":"229859620","full_name":"vanillawc/wc-template","owner":"vanillawc","description":"Template HTML with tagged template literals","archived":false,"fork":false,"pushed_at":"2021-05-16T17:24:35.000Z","size":395,"stargazers_count":16,"open_issues_count":1,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-05-22T11:28:56.639Z","etag":null,"topics":["literal","tagged","template","vanilla","web-components"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/vanillawc.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}},"created_at":"2019-12-24T02:59:21.000Z","updated_at":"2024-07-19T13:24:23.000Z","dependencies_parsed_at":"2023-07-26T06:17:15.691Z","dependency_job_id":null,"html_url":"https://github.com/vanillawc/wc-template","commit_stats":null,"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"purl":"pkg:github/vanillawc/wc-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanillawc%2Fwc-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanillawc%2Fwc-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanillawc%2Fwc-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanillawc%2Fwc-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vanillawc","download_url":"https://codeload.github.com/vanillawc/wc-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanillawc%2Fwc-template/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260006034,"owners_count":22944868,"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":["literal","tagged","template","vanilla","web-components"],"created_at":"2024-11-05T11:09:57.496Z","updated_at":"2025-06-15T16:10:20.164Z","avatar_url":"https://github.com/vanillawc.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\u0026lt;wc-template\u0026gt; Tagged Template Literals in HTML\u003c/h1\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://github.com/vanillawc/wc-template/releases\"\u003e\u003cimg src=\"https://badgen.net/github/tag/vanillawc/wc-template\" alt=\"GitHub Releases\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/@vanillawc/wc-template\"\u003e\u003cimg src=\"https://badgen.net/npm/v/@vanillawc/wc-template\" alt=\"NPM Releases\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://bundlephobia.com/result?p=@vanillawc/wc-template\"\u003e\u003cimg src=\"https://badgen.net/bundlephobia/minzip/@vanillawc/wc-template\" alt=\"Bundlephobia\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/vanillawc/wc-template/actions\"\u003e\u003cimg src=\"https://github.com/vanillawc/wc-template/workflows/Latest/badge.svg\" alt=\"Latest Status\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/vanillawc/wc-template/actions\"\u003e\u003cimg src=\"https://github.com/vanillawc/wc-template/workflows/Release/badge.svg\" alt=\"Release Status\"\u003e\u003c/a\u003e\n\n  \u003ca href=\"https://discord.gg/aSWYgtybzV\"\u003e\u003cimg alt=\"Discord\" src=\"https://img.shields.io/discord/723296249121603604?color=%23738ADB\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.webcomponents.org/element/vanillawc/wc-template\"\u003e\u003cimg src=\"https://img.shields.io/badge/webcomponents.org-published-blue.svg\" alt=\"Published on WebComponents.org\"\u003e\u003c/a\u003e\n\u003c/div\u003e\n\n## Installation\n\n*Installation*\n```sh\nnpm i @vanillawc/wc-template\n```\n\n*Import from NPM*\n```html\n\u003cscript type=\"module\" src=\"node_modules/@vanillawc/wc-template/index.js\"\u003e\u003c/script\u003e\n```\n\n*Import from CDN*\n```html\n\u003cscript type=\"module\" src=\"https://cdn.jsdelivr.net/gh/vanillawc/wc-template@1/index.js\"\u003e\u003c/script\u003e\n```\n\n## Demo\n\nTry it on [WebComponents.dev](https://webcomponents.dev/edit/BggRSZ5D4tmsyce94mpB?sv=1\u0026pm=1)\n\n## Usage\n\n**Attributes**\n\n- `src` - load an external source file\n- `context` - load the tags from an external endpoint\n\n### Basic Usage\n\n```html\n\u003cwc-template src=\"sample.html\"\u003e\u003c/wc-template\u003e\n```\n\n## Context\n\nIf the template is a tagged template literal, context can be provided via an external endpoint.\n\n```html\n\u003cwc-template src=\"sample2.html\" theme=\"context.json\"\u003e\u003c/wc-template\u003e\n```\n\n## Contributing\n\nSee [CONTRIBUTING.md](https://github.com/vanillawc/vanillawc/blob/main/CONTRIBUTING.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvanillawc%2Fwc-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvanillawc%2Fwc-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvanillawc%2Fwc-template/lists"}