{"id":15092042,"url":"https://github.com/best-shot/micro-tpl-loader","last_synced_at":"2025-09-03T08:42:38.515Z","repository":{"id":34028771,"uuid":"165996479","full_name":"best-shot/micro-tpl-loader","owner":"best-shot","description":"Micro mustache template loader for webpack","archived":false,"fork":false,"pushed_at":"2023-01-07T16:20:52.000Z","size":301,"stargazers_count":0,"open_issues_count":4,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-21T23:18:42.672Z","etag":null,"topics":["barbe","handlebars","html","mustache","template","tpl","webpack"],"latest_commit_sha":null,"homepage":null,"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/best-shot.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}},"created_at":"2019-01-16T07:41:48.000Z","updated_at":"2021-12-15T01:39:39.000Z","dependencies_parsed_at":"2023-01-15T04:03:59.494Z","dependency_job_id":null,"html_url":"https://github.com/best-shot/micro-tpl-loader","commit_stats":null,"previous_names":["airkro/micro-tpl-loader"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/best-shot%2Fmicro-tpl-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/best-shot%2Fmicro-tpl-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/best-shot%2Fmicro-tpl-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/best-shot%2Fmicro-tpl-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/best-shot","download_url":"https://codeload.github.com/best-shot/micro-tpl-loader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244880659,"owners_count":20525515,"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":["barbe","handlebars","html","mustache","template","tpl","webpack"],"created_at":"2024-09-25T11:00:46.413Z","updated_at":"2025-03-22T11:40:49.749Z","avatar_url":"https://github.com/best-shot.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# micro-tpl-loader\n\nMicro mustache template loader for webpack.\n\n[![npm][npm-badge]][npm-url]\n[![github][github-badge]][github-url]\n![node][node-badge]\n\n[npm-url]: https://www.npmjs.com/package/micro-tpl-loader\n[npm-badge]: https://img.shields.io/npm/v/micro-tpl-loader.svg?style=flat-square\u0026logo=npm\n[github-url]: https://github.com/airkro/micro-tpl-loader\n[github-badge]: https://img.shields.io/npm/l/micro-tpl-loader.svg?style=flat-square\u0026colorB=blue\u0026logo=github\n[node-badge]: https://img.shields.io/node/v/micro-tpl-loader.svg?style=flat-square\u0026colorB=green\u0026logo=node.js\n\nSupport [MicroMustache](https://www.npmjs.com/package/micromustache) interpolation. Not for `Handlebars` and `Mustache`.\n\n## Installation\n\n```bash\nnpm install micro-tpl-loader --save-dev\n```\n\n## Usage\n\n```cjs\n// example: webpack.config.cjs\n\nconst params = {\n  // define params here\n  foo: 'bar',\n  xyz: {\n    abc: 123\n  }\n};\n\nmodule.exports = {\n  module: {\n    rules: [\n      {\n        test: /\\.tpl$/,\n        use: {\n          loader: 'micro-tpl-loader',\n          options: {\n            params\n          }\n        }\n      }\n    ]\n  }\n};\n```\n\n```html\n\u003c!-- index.tpl --\u003e\n\u003cdiv\u003e{{ foo }}\u003c/div\u003e\n\u003cdiv\u003e{{ xyz.abc }} - test\u003c/div\u003e\n\n↓↓\n\n\u003c!-- index.html --\u003e\n\u003cdiv\u003ebar\u003c/div\u003e\n\u003cdiv\u003e123 - test\u003c/div\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbest-shot%2Fmicro-tpl-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbest-shot%2Fmicro-tpl-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbest-shot%2Fmicro-tpl-loader/lists"}