Is there anyway to run a function whenever any template is created?
For instance I have these 2 templates
Template.myTemplate1.onCreated(function () {
console.log('log');
});
Template.myTemplate2.onCreated(function () {
console.log('log');
});
And I run the same function whenever they are created… can I do something like this
Template.allTemplates.onCreated(function () {
console.log('log');
});