{"id":13782379,"url":"https://github.com/belicekm/parcel-plugin-handlebars-precompile","last_synced_at":"2025-05-11T15:32:28.428Z","repository":{"id":47977268,"uuid":"134461438","full_name":"belicekm/parcel-plugin-handlebars-precompile","owner":"belicekm","description":"Precompiel handlebars templates","archived":false,"fork":false,"pushed_at":"2023-01-07T08:55:10.000Z","size":904,"stargazers_count":16,"open_issues_count":14,"forks_count":5,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-26T05:19:10.237Z","etag":null,"topics":["handlebars","parcel","parcel-bundler"],"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/belicekm.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2018-05-22T18:51:48.000Z","updated_at":"2023-02-01T17:15:23.000Z","dependencies_parsed_at":"2023-02-06T17:30:48.386Z","dependency_job_id":null,"html_url":"https://github.com/belicekm/parcel-plugin-handlebars-precompile","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/belicekm%2Fparcel-plugin-handlebars-precompile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/belicekm%2Fparcel-plugin-handlebars-precompile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/belicekm%2Fparcel-plugin-handlebars-precompile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/belicekm%2Fparcel-plugin-handlebars-precompile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/belicekm","download_url":"https://codeload.github.com/belicekm/parcel-plugin-handlebars-precompile/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253588733,"owners_count":21932313,"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":["handlebars","parcel","parcel-bundler"],"created_at":"2024-08-03T18:01:35.976Z","updated_at":"2025-05-11T15:32:28.061Z","avatar_url":"https://github.com/belicekm.png","language":"JavaScript","funding_links":[],"categories":["Plugins"],"sub_categories":["Templates"],"readme":"# parcel-plugin-handlebars-precompile\nPrecompile handlebars templates into javascript allowing them to be imported as a regular javascript source.\nIt is up to you how and when the template will be rendered.\n\n# Install\n\n```bash\nnpm install --save-dev parcel-plugin-handlebars-precompile\n```\n\n#### NOTE to version 1.0.2  \n- Fully compatible with `parcel-bundler@1.11.0`.  \n- Partially compatible with `parcel-bundler@1.12.x`\n  \u003e source map generation must be disabled eg: `parcel build index.html --no-source-maps`.  \n\n# Usage\n  \nImport your handlebars template:  \n\n```javascript\n// index.js\nimport templateFunction from './template.hbs';\ndocument.body.innerHTML = templateFunction();\n```\n\nImport `index.js` from your `index.html` file:\n\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml\u003e\n  \u003c!-- index.html --\u003e\n  ...\n  \u003cbody\u003e\n    \u003cscript src=\"./index.js\"\u003e\u003c/script\u003e\n  \u003c/body\u003e\n  ...\n\u003c/html\u003e\n```\n\nRun the parcel bundler:  \n\n```bash\nparcel build index.html\n```\n\nWith `parcel-bundler@1.12.x` run without sourcemap generation:\n```bash\nparcel index.html --no-source-maps\n```\nbuild:\n```bash\nparcel build index.html --no-source-maps\n```\n\n# Credits\n - [Handlebars](https://handlebarsjs.com/) - A templates on steroids.\n - [Parcel](https://parceljs.org/) - Zero configuration bundler.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbelicekm%2Fparcel-plugin-handlebars-precompile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbelicekm%2Fparcel-plugin-handlebars-precompile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbelicekm%2Fparcel-plugin-handlebars-precompile/lists"}