Using variables for a partial template
I'm definitely missing something about the way Handlebars works. I need to call different partials depending on the value of a variable. Currently the only way I've found to do it is this: <template name="base"> {{#if a}}{{> a}}{{/if}} {{#if b}}{{> b}}{{/if}} {{#if c}}{{> c}}{{/if}} </template> And in the corresponding JS: Template.base.a = function () { return (mode === "a"); } Template.base.b = function () { return (mode === "b"); } Template.base.c = function () { return (mode === "c"); } ...which strikes me as extremely verbose. What I'd really like to do is something like: <template name=