{"id":13801130,"url":"https://github.com/alosaur/handlebars","last_synced_at":"2025-06-11T06:05:53.610Z","repository":{"id":52173614,"uuid":"260792917","full_name":"alosaur/handlebars","owner":"alosaur","description":"Handlebars template engine for Deno","archived":false,"fork":false,"pushed_at":"2024-07-17T15:56:47.000Z","size":45,"stargazers_count":31,"open_issues_count":4,"forks_count":12,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-02T05:02:22.130Z","etag":null,"topics":["deno","handlebars","html"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/alosaur.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":"2020-05-02T23:22:43.000Z","updated_at":"2024-12-01T12:24:27.000Z","dependencies_parsed_at":"2024-11-06T17:46:07.080Z","dependency_job_id":null,"html_url":"https://github.com/alosaur/handlebars","commit_stats":{"total_commits":54,"total_committers":5,"mean_commits":10.8,"dds":"0.20370370370370372","last_synced_commit":"cf997a3bdf6b72cbe2225ea7f19212ee0093a719"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alosaur%2Fhandlebars","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alosaur%2Fhandlebars/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alosaur%2Fhandlebars/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alosaur%2Fhandlebars/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alosaur","download_url":"https://codeload.github.com/alosaur/handlebars/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alosaur%2Fhandlebars/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":258689398,"owners_count":22741797,"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":["deno","handlebars","html"],"created_at":"2024-08-04T00:01:19.844Z","updated_at":"2025-06-11T06:05:53.577Z","avatar_url":"https://github.com/alosaur.png","language":"TypeScript","funding_links":[],"categories":["Modules"],"sub_categories":["Template engine"],"readme":"## Handlebars template render for Deno\n\n![test](https://github.com/alosaur/handlebars/workflows/test/badge.svg)\n\nOfficial handlebars docs: [Guide](https://handlebarsjs.com/guide)\n\n### How to use renderer\n\n```ts\nimport { Handlebars, HandlebarsConfig } from 'https://deno.land/x/handlebars/mod.ts';\n\n// First, create instance of Handlebars\n\nconst handle = new Handlebars();\n\n// or with custom config\nconst handle = new Handlebars({\n    ...\n});\n\n// by default uses this config:\nconst DEFAULT_HANDLEBARS_CONFIG: HandlebarsConfig = {\n    baseDir: 'views',\n    extname: '.hbs',\n    layoutsDir: 'layouts/',\n    partialsDir: 'partials/',\n    cachePartials: true,\n    defaultLayout: 'main',\n    helpers: undefined,\n    compilerOptions: undefined,\n};\n\n// Then render page to string\nconst result: string = await handle.renderView('index', { name: 'Alosaur' });\n```\n\n#### Rendering in development mode\n\nBy default partials are registered (and so cached) the first time you call\n`renderView`. However, in development, it may be better to re-register them\nevery time you render a view so that the rendering reflects the latest changes\nyou have made to your partials.\n\nYou can ensure this happens by setting `cachePartials` to be false in your\nconfiguration.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falosaur%2Fhandlebars","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falosaur%2Fhandlebars","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falosaur%2Fhandlebars/lists"}