Skip to content

Instantly share code, notes, and snippets.

@possibilities
Forked from anonymous/test.html
Last active December 20, 2015 22:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save possibilities/6207275 to your computer and use it in GitHub Desktop.
Save possibilities/6207275 to your computer and use it in GitHub Desktop.
<template name="helper_test">
{{#each test_objects}}
<p>Object: {{helper-test this}}</p>
{{/each}}
</template>
Handlebars.registerHelper('helper-test', function(object) {
console.log('object:', object); //this does get called but doesn't return a, b and c like I would expect
//do some other stuff here
});
Template.helper_test.test_objects = function() {
return ['a', 'b', 'c'];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment