Skip to content

Instantly share code, notes, and snippets.

Created August 11, 2013 22:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/6207265 to your computer and use it in GitHub Desktop.
Save anonymous/6207265 to your computer and use it in GitHub Desktop.
<template name="helper_test">
{{#each test_objects}}
<p>Object: {{helper-test}}</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