-
-
Save possibilities/6207275 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template name="helper_test"> | |
{{#each test_objects}} | |
<p>Object: {{helper-test this}}</p> | |
{{/each}} | |
</template> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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