Skip to content

Instantly share code, notes, and snippets.

@stephentcannon
Created February 13, 2014 19:10
Show Gist options
  • Save stephentcannon/8981711 to your computer and use it in GitHub Desktop.
Save stephentcannon/8981711 to your computer and use it in GitHub Desktop.
What meteor templates are rendering
function logRenders () {
_.each(Template, function (template, name) {
var oldRender = template.rendered;
var counter = 0;
template.rendered = function () {
console.log(name, "render count: ", ++counter);
oldRender && oldRender.apply(this, arguments);
};
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment