Any idea how to allow my BioPic Handlebars helper (I'm using Meteor) to allow different contexts for the param 'owner'. I'm calling showBioPic as a partial from another template i.e.
<template name="myMain">
{{#each post}}
{{> showBioPic}}
{{/each}}
Do a bunch of other stuff here too.
</template>
I want be able to pass in different 'owner' values depending on the calling template, i.e. Meteor.userId, post.owner, anotherUsersId. i.e. if I used {{#each user}} this doesn't have an owner field, it has a userId, so BioPic helper would not work.
<template name="showBioPic">
{{#with BioPic owner}}
<img src="{{cfsFileUrl 'size48x48gm'}}" alt="Profile Picture: {{_id}}">
{{else}}
<img class="showShared" src="images/default-biopic-48x48.png" alt="Default Profile Picture">
{{/with}}
</template>
Template.showBioPic.BioPic = function (IN_ownerId)
return BioPicsFS.findOne( { owner: IN_ownerId });
};