I want to pass a new parameter to a template with keeping it\'s original data context.
{{> myTemplate withIc
Building on David's second option to allow for multiple attributes:
{{> myTemplate extendContext withIcon=true label="Has Icon" }}
{{> myTemplate extendContext withIcon=false label="No Icon" }}
and then in javascript:
Template.registerHelper('extendContext', function(data) {
var result = _.clone(this);
_.each(data.hash, function(value, key) {
result[key] = value;
})
return result;
})