{"id":18368124,"url":"https://github.com/thinkjs/think-template-handlebars","last_synced_at":"2025-04-10T19:37:15.811Z","repository":{"id":65374727,"uuid":"45768878","full_name":"thinkjs/think-template-handlebars","owner":"thinkjs","description":"handlebars template adapter for ThinkJS 2.x","archived":false,"fork":false,"pushed_at":"2019-12-27T06:17:24.000Z","size":10,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-03T00:01:37.497Z","etag":null,"topics":[],"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/thinkjs.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":"2015-11-08T05:56:19.000Z","updated_at":"2019-12-27T06:17:18.000Z","dependencies_parsed_at":"2023-01-20T01:25:23.015Z","dependency_job_id":null,"html_url":"https://github.com/thinkjs/think-template-handlebars","commit_stats":null,"previous_names":["welefen/think-template-handlebars"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkjs%2Fthink-template-handlebars","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkjs%2Fthink-template-handlebars/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkjs%2Fthink-template-handlebars/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkjs%2Fthink-template-handlebars/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thinkjs","download_url":"https://codeload.github.com/thinkjs/think-template-handlebars/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248281415,"owners_count":21077423,"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":[],"created_at":"2024-11-05T23:24:40.145Z","updated_at":"2025-04-10T19:37:15.783Z","avatar_url":"https://github.com/thinkjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# think-template-handlebars\n\nhandlebars template adapter for `ThinkJS 2.x`\n\n## Install\n\n```sh\nnpm install think-template-handlebars\n```\n\n## How to use\n\n### register adapter\n\n```js\nimport HandlebarseAdapter from 'think-template-handlebars';\nthink.adapter('template', 'handlebars', HandlebarseAdapter);\n```\n\nadd above code in bootstrap file, like `src/common/boostrap/adapter.js`.\n\n### change view type\n\nchange view type in file `src/common/config/view.js`,\n\n```js\nexport default {\n  type: 'handlebars',\n  adapter: {\n    handlebars: { //handlebars options\n\n    }\n  }\n}\n```\n\n### precompiled\n\nyou can precompile handlebars template before deployed. it will auto identified when render template.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinkjs%2Fthink-template-handlebars","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthinkjs%2Fthink-template-handlebars","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinkjs%2Fthink-template-handlebars/lists"}