title: Meteor Handlebars: #if this equals - load different templates with helperfunction
body: <p>I'm quite new to Meteor and just trying to build my first meteor App also using <a href="https://github.com/tmeasday/meteor-transitioner" rel="nofollow">Transitioner</a>.</p>
  
  <p>So what I'm trying to do is load different templates when a string passed to another template is equal to something.
  The HTML code:</p>
  
  <pre><code>&lt;template name="onePage"&gt;
    {{#if itIs "teams"}}
      {{&gt; teams}}
    {{/if}}
    {{#if itIs "players"}}
      {{&gt; players}}
    {{/if}}
  &lt;/template&gt;
  &lt;template name="teams"&gt;
    &lt;h2&gt;These are the TEAMS&lt;/h2&gt;
  &lt;/template&gt;
  &lt;template name="players"&gt;
    &lt;h2&gt;These are the PLAYERS&lt;/h2&gt;
  &lt;/template&gt;
  </code></pre>
  
  <p>The JS code:</p>
  
  <pre><code>Template.onePage.itIs = function(passed) {
    return this === passed;
  };
  </code></pre>
  
  <p>This does not work for some reason and I just don't understand why.
  The only point really is that "this" passed to the onePage template is some string (coming from the URL). And if this string is "teams" I want to load the teams template, if it is "players" I want to load the players template.</p>
  
  <p>As easy as that! :-)</p>
  
  <p>Unfortunately I just can't solve this simple problem.</p>
  
  <p>Hope you guys understand my problem and you can help!</p>
  
  <p>best regards
  Patrick</p>