Can’t find answer anywhere and
{{ console.log something }}
doesn’t work
Can’t find answer anywhere and
{{ console.log something }}
doesn’t work
html:
<template name="page">
{{log something}}
</template>
js:
Template.registerHelper('log', function(what) {
// You can use `this` and/or `Template.instance()`
// to get template data access
console.log(what);
});
Yes, I was just about to post this same solution!