But instead for just one template, it works across several templates, so I do not need to copy and paste code. is there a way to do this in meteor? I cannot seem to find the correct way
The events parameter is just a javascript object, so you could define this object anywhere you want, then re-use it as needed. For example, you could create a /imports/ui/common/events.js file, with something like: