title: Meteor.js: How to set a div height dynamically via Javascript
body: <p>I'm using templates/handlebars but none of the event handlers are triggered when the browser window resizes. Not sure how to capture the resize event in order to dynamically set the div's height to be within the viewport </p>
  
  <p>Here's a sample of what I've tried so far using meteor's event map:</p>
  
  <pre><code>Template.basic.events({
      'resize window' : function(evt, tmpl){
           alert("test");
       },
  };
  </code></pre>
  
  <p>Ideally this handler would be called each time the window is resized so I can use <code>$(window).height()</code> to set the div's height in the html using <code>tmpl.find('#main-div');</code>.</p>