I would like the ability to load templates dynamically without explicitly specifying the template.
As an example:
>
This would handl dynamic templates both with and without data: (requires Blaze/ Meteor 0.8)
{{> dynamicTemplate name=templateName}}
{{#with chooseTemplate name }}
{{#if ../data}}
{{#with ../data }}
{{> .. }}
{{/with}}
{{else}}
{{> this}}
{{/if}}
{{/with}}
template javascript:
Template.dynamicTemplate.chooseTemplate = function (name) {
return Template[name];
};