{"id":24196275,"url":"https://github.com/open-node/ecofy","last_synced_at":"2026-05-15T07:02:21.546Z","repository":{"id":57219332,"uuid":"20873835","full_name":"open-node/ecofy","owner":"open-node","description":null,"archived":false,"fork":false,"pushed_at":"2014-06-16T05:41:36.000Z","size":124,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-29T18:10:48.747Z","etag":null,"topics":["coffee","ejs","template"],"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/open-node.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":"2014-06-16T05:32:42.000Z","updated_at":"2017-03-13T10:06:45.000Z","dependencies_parsed_at":"2022-08-29T02:12:11.560Z","dependency_job_id":null,"html_url":"https://github.com/open-node/ecofy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-node%2Fecofy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-node%2Fecofy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-node%2Fecofy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-node%2Fecofy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/open-node","download_url":"https://codeload.github.com/open-node/ecofy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241629736,"owners_count":19993708,"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":["coffee","ejs","template"],"created_at":"2025-01-13T19:24:21.862Z","updated_at":"2026-05-15T07:02:16.499Z","avatar_url":"https://github.com/open-node.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ecofy\n\n[eco][] precompiler plugin for [Browserify][] without magic.\n\nCompiles Handlebars templates to plain Javascript. The compiled templates only\nhave one copy of the Handlebars runtime so they are lightweight and fast!\n\n## Usage\n\nInstall hbsfy locally to your project:\n\nnpm install ecofy\n\nHandlebars will be automatically installed as [peer dependency][].\n\nThen use it as Browserify transform module with `-t`:\n\nbrowserify -t eco main.js \u003e bundle.js\n\nwhere main.js can be like:\n\n\n```javascript\nvar template = require(\"./template.eco\");\ndocument.body.innerHTML = template({ name: \"Epeli\" });\n```\n\nand template.hbs:\n\n```html\n\u003ch1\u003eHello \u003c%=name%\u003e!\u003c/h1\u003e\n```\n\n## Programmatic usage\n\nWhen compiling using Javascript code custom extensions\ncan be set:\n\n```javascript\nvar ecofy = require(\"ecofy\");\n\nvar browserify = require(\"browserify\");\nvar b = browserify(\"./index.js\");\nb.transform(ecofy);\nb.bundle().pipe(fs.createWriteStream(\"./bundle.js\"));\n```\n\n[eco]: https://github.com/sstephenson/eco\n[Browserify]: https://github.com/substack/node-browserify\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopen-node%2Fecofy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopen-node%2Fecofy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopen-node%2Fecofy/lists"}