title: How to trigger EventMap event for template from another template's event in Meteor.js?
body: <p>I stumbled across a really funky requirement in Meteor.js — I have 2 buttons ("submit as child" and "submit as sibling") and text input that reacts to pressed keys. Buttons work on their own, but I'd like to trigger "click" event made with Template.my_template.events(...) from the input's keydown event.</p>
  
  <p>I managed to script everything using following construct (coffeescript) of using both EventMap and rendered() callback:</p>
  
  <pre><code>Template.my_template.events = 
  
      'keydown input': () -&gt; reactToPressedKey();
  
  Template.my_template.rendered = () -&gt;
  
      $('click .submit_child').bind 'click', () -&gt; doStuff();
      $('click .submit_sibling').bind 'click', () -&gt; doStuff();
  </code></pre>
  
  <p>It works like I expected, but I wonder if there's any better solution like using only EventMap (Template.my_template.events)?</p>