Created
August 11, 2013 22:55
-
-
Save anonymous/6207265 to your computer and use it in GitHub Desktop.
This file contains 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}}</p> | |
{{/each}} | |
</template> |
This file contains 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