I need to include a template only on the homepage. I already am adding a homepage specific class to the body element so here’s what I tried. The template is a drawer that is supposed to be included in my header.
The error I get is that I can’t render the template ( bottomDrawer ) on a template with no DOM. So I’m assuming that the helper is firing before the actual DOM has rendered for the header template?
How can I dynamically include this template if Blaze.render() expects a parent node to which the parent hasn’t even rendered yet?
As a side note you can accomplish this easier using the features of a router… With iron:router you can use the yieldTemplates feature and with kadira:flow-router you can use BlazeLayout in the action to to render templates into Template.dynamic
I hate to admit this but I actually am using Flow Router and Blaze Layout but I completely spaced on doing this with the two. For whatever reason I had it in my head to do it the other way. Thanks for the wake up!