{"id":13776347,"url":"https://github.com/themeteorites/blaze-magic-events","last_synced_at":"2025-05-11T10:30:57.234Z","repository":{"id":33454550,"uuid":"37099952","full_name":"themeteorites/blaze-magic-events","owner":"themeteorites","description":"A new way of binding event handlers to html elements for Meteor's Blaze.","archived":false,"fork":false,"pushed_at":"2016-09-19T10:20:08.000Z","size":13,"stargazers_count":26,"open_issues_count":2,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-02-12T05:38:30.799Z","etag":null,"topics":["blaze","event-handlers","meteor","meteor-blaze"],"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/themeteorites.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-09T00:08:49.000Z","updated_at":"2018-12-14T06:42:56.000Z","dependencies_parsed_at":"2022-07-13T11:50:35.747Z","dependency_job_id":null,"html_url":"https://github.com/themeteorites/blaze-magic-events","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/themeteorites%2Fblaze-magic-events","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/themeteorites%2Fblaze-magic-events/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/themeteorites%2Fblaze-magic-events/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/themeteorites%2Fblaze-magic-events/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/themeteorites","download_url":"https://codeload.github.com/themeteorites/blaze-magic-events/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253551521,"owners_count":21926308,"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":["blaze","event-handlers","meteor","meteor-blaze"],"created_at":"2024-08-03T18:00:23.512Z","updated_at":"2025-05-11T10:30:56.964Z","avatar_url":"https://github.com/themeteorites.png","language":"JavaScript","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"readme":"# blaze-magic-events\nA new way of binding event handlers to html elements for Meteor's Blaze.\n\nnote: all code is ES6\n\nTemplate\n\n```html\n\u003ctemplate name=\"helloworld\"\u003e\n  \u003cbutton onclick={{sayHi}}\u003eSay Hi!\u003c/button\u003e\n  \u003cbutton onclick={{reset}}\u003ereset\u003c/button\u003e\n  \u003cbutton onclick={{say name \"hi\"}}\u003esay \"hi\" (using args)\u003c/button\u003e\n  \u003cp\u003e\u003c/p\u003e\n\u003c/template\u003e\n```\n\nEvent handlers\n\n```js\n  Template.helloworld.events({\n    sayHi (e, t) {\n      console.log('event and templateInstance params', e, t)\n      t.$('p').html('hi there from sayHi() handler!')\n    },\n    reset (e, t) {\n      t.$('p').html('')\n    },\n    say (e, t, who, what) {\n      t.$('p').html(`${who} says ${what}`)\n    },\n  })\n  \n  Template.helloworld.helpers({\n    name () {\n      return 'template'\n    }\n  })\n```\n\nEnjoy! Feedback welcome. Example app given.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthemeteorites%2Fblaze-magic-events","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthemeteorites%2Fblaze-magic-events","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthemeteorites%2Fblaze-magic-events/lists"}