title: Meteor Flow Router Dynamic Template
body: <p>I've been working on my on meteor app. Now it will be great if my maincontent on the mainpage is dynamic. I got this code:</p>
  
  <p><strong>main.html</strong></p>
  
  <pre><code>&lt;head&gt;
    &lt;title&gt;Taskmanager&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  {{&gt; navBar}}
  {{&gt; mainlayout}}
  &lt;/body&gt;
  </code></pre>
  
  <p><strong>mainlayout.html</strong></p>
  
  <pre><code>&lt;template name="mainlayout"&gt;
  &lt;main&gt;
  {{&gt; Template.dynamic template=main}}
  &lt;/main&gt;
  &lt;/template&gt;
  </code></pre>
  
  <p><strong>routes.js</strong></p>
  
  <pre><code>FlowRouter.route('/', {
  name: 'home',
  action: function() {
  BlazeLayout.render('mainlayout', {main: 'noteOverview'});
  }
  });
  </code></pre>
  
  <p><strong>noteoverview.html</strong></p>
  
  <pre><code>&lt;template name="noteOverview"&gt;
   &lt;div class="container"&gt;
    &lt;h3&gt;Latest Tasks&lt;/h3&gt;
   &lt;/div&gt;
  &lt;/template&gt;
  </code></pre>
  
  <p>When i open the page, the mainlayout doesn't load the noteoverview.html in. Do i miss something? Thanx for any help!</p>
  
  <p><strong>SOLVED:</strong>
  I forgot to add the package: kadira:blaze-layout....stupid fault</p>