title: How to pass parameters to template event in meteor?
body: <p>How to pass values to template events</p>
  
  <p>Html</p>
  
  <pre><code>&lt;template name="Header"&gt;
   &lt;div class="testClass"&gt;Text1&lt;/div&gt; // pass a = 1
   &lt;div class="testClass"&gt;Text2&lt;/div&gt; // pass a = 2
  &lt;/template&gt;
  </code></pre>
  
  <p>Javascript</p>
  
  <pre><code>Template.Header.events({
  'click .testClass':function(event, template){
      console.log(a) //print a values
    }
  });
  </code></pre>