I want to run some code on the onCreated event in meteor in every template.
I know meteor allows helpers to apply to all templates:
Template.registerHelper("example", function() {
// do something
});
But is it possible to register a function that will apply to every onCreated event?