title: Meteor: activating other templates through click?
body: <p>By default I set one of my templates to <code>return false</code>. What I would like to do is have a click event that changes my previous template to <code>return true</code>. My code is as follows:</p>
  
  <pre><code>Template.mypage.helpers({
  pagefunction(){ return false;}
  });
  
  Template.mypage.events({
  'click #randomdiv': function(){
  pagefunction(){ return true; }
  } 
  });
  </code></pre>
  
  <p>The command doesn't work, but demonstrates hopefully what I am trying to achieve. I would like <code>pagefunction</code> to return true when I click on a div that is within the same template. </p>
  
  <p>Meanwhile, my HTML looks something along the lines of:</p>
  
  <pre><code>&lt;template name="mypage"&gt;
      {{#if pagefunction}}
      {{&gt; atemplate}}
      {{/if}}
  &lt;/template&gt;
  </code></pre>