I have a situation where I need to load a dynamic template, and I need my helper to have a parameter so that I can load the proper template name from Mongo.
So, I would like to pass ‘sw’ to the getPanel helper, so that I can fetch the appropriate panel from the database and return it’s name to the Template.dynamic call. Here is what I have:
What you want is something like this: {{> Template.dynamic template=(getPanel argument) }}. This is not supported right now. Maybe in the future (see here).