title: when passing a variable into a backbone template, how to reference it in the template?
body: <p>the Template looks like this.</p>
  
  <pre><code>&lt;div&gt;
      &lt;H5&gt;Status for your request&lt;/H5&gt;
      &lt;table&gt;
      &lt;tbody&gt;
      &lt;tr&gt;
          &lt;th&gt;RequestId&lt;/th&gt;
          &lt;th&gt;&lt;%=id%&gt;&lt;/th&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;th&gt;Email&lt;/th&gt;
          &lt;th&gt;&lt;%=emailId%&gt;&lt;/th&gt;
      &lt;/tr&gt;       
      &lt;tr&gt;
          &lt;th&gt;Status&lt;/th&gt;
          &lt;th&gt;&lt;%=status%&gt;&lt;/th&gt;
      &lt;/tr&gt;       
       &lt;/tbody&gt;
       &lt;/table&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>This is the View Javascript that renders the page.</p>
  
  <pre><code>window.StatusView = Backbone.View.extend({
  
  initialize:function () {
      console.log('Initializing Status View');
      this.template = _.template(tpl.get('status'));
  },
  
  render:function (eventName) {
  
      $(this.el).html(this.template());
      return this;
  },
  
  events: { "click button#status-form-submit" : "getStatus" },
  
  getStatus:function(){
  
      var requestId = $('input[name=requestId]').val();
      requestId= $.trim( requestId );
  
      var request  = requests.get( requestId );
  
      var statusTemplate = _.template(tpl.get('status-display'));
      var statusHtml = statusTemplate( request );
      $('#results-span').html( statusHtml );
  }
  
  });
  </code></pre>
  
  <p>When the clicks on the input, the requestId is read and the status is appended in html element with id 'results-span'.</p>
  
  <p>The failure happens when replacing the values in html-template with variable values.</p>
  
  <pre><code>var statusTemplate = _.template(tpl.get('status-display'));
  var statusHtml = statusTemplate( request );
  </code></pre>
  
  <p>The rendering fails with the following error.</p>
  
  <pre><code>Uncaught ReferenceError: emailId is not defined
  (anonymous function)
  _.templateunderscore-1.3.1.js:931
  window.StatusView.Backbone.View.extend.getStatusstatus.js:34
  jQuery.event.dispatchjquery.js:3242
  jQuery.event.add.elemData.handle.eventHandle
  </code></pre>