{"id":13825903,"url":"https://github.com/luwes/rollup-plugin-tagged-template","last_synced_at":"2025-04-13T21:36:03.688Z","repository":{"id":35142309,"uuid":"212241788","full_name":"luwes/rollup-plugin-tagged-template","owner":"luwes","description":"Use plain HTML files as tagged templates.","archived":false,"fork":false,"pushed_at":"2024-06-17T22:09:53.000Z","size":153,"stargazers_count":24,"open_issues_count":9,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-27T11:51:19.561Z","etag":null,"topics":["rollup","rollup-plugin","tagged-template","template-literals"],"latest_commit_sha":null,"homepage":null,"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":"2019-10-02T02:41:14.000Z","updated_at":"2023-03-21T11:39:23.000Z","dependencies_parsed_at":"2024-10-23T04:57:53.506Z","dependency_job_id":null,"html_url":"https://github.com/luwes/rollup-plugin-tagged-template","commit_stats":{"total_commits":4,"total_committers":2,"mean_commits":2.0,"dds":0.25,"last_synced_commit":"dba87a91b23a400ba6b9c4cc87dbbc897b7d5452"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luwes%2Frollup-plugin-tagged-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luwes%2Frollup-plugin-tagged-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luwes%2Frollup-plugin-tagged-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luwes%2Frollup-plugin-tagged-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luwes","download_url":"https://codeload.github.com/luwes/rollup-plugin-tagged-template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248788319,"owners_count":21161722,"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":["rollup","rollup-plugin","tagged-template","template-literals"],"created_at":"2024-08-04T09:01:28.881Z","updated_at":"2025-04-13T21:36:03.651Z","avatar_url":"https://github.com/luwes.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# rollup-plugin-tagged-template\n\nUse plain HTML files as tagged templates.  \n\n`npm install rollup-plugin-tagged-template`\n\n## Usage\n\n### rollup.config.js:\n\n```js\nimport taggedTemplate from 'rollup-plugin-tagged-template';\n\nexport default {\n  input: 'app.js',\n  output: {\n    file: 'bundle.js',\n    format: 'esm'\n  },\n  plugins: [\n    taggedTemplate({\n      include: '**/*.html',     // required\n      exclude: '**/*.js',       // optional\n      tagName: 'html',          // optional - for nested tag templates\n      propsName: 'props'        // optional\n    })\n  ]\n};\n```\n\n### template.html\n\n```html\n\u003cp\u003eHello ${name}\u003c/p\u003e\n```\n\n### app.js\n\n```js\n// for example html from sinuous, can be any tag template function\nimport { html } from 'sinuous';\nimport template from './template.html';\n\nconst props = {\n  name: 'Tiana'\n};\n\nconsole.log(template(html, props)); // outputs a Node: \u003cp\u003eHello Tiana\u003c/p\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluwes%2Frollup-plugin-tagged-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluwes%2Frollup-plugin-tagged-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluwes%2Frollup-plugin-tagged-template/lists"}