title: What is causing SyntaxError: Unexpected EOF error in underscore template?
body: <p>I am getting a SyntaxError: Unexpected EOF output when using an underscore template to render html in a Backbone application. Here is my template:-</p>
  
  <pre><code>&lt;script type="text/template" id="shellmenu-template"&gt;
    &lt;div&gt;
      &lt;p&gt;menu template html will go here....&lt;/p&gt;
      &lt;div class="menuButtonsContainer"&gt;
          &lt;% _.each(menu, function(menuItem){ %&gt;
          &lt;button class="menuButton" id="&lt;%= _.escape(menuItem.id)"&gt;&lt;%= _.escape(menuItem.title) %&gt;&lt;/button&gt;
          &lt;% }); %&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/script&gt;
  </code></pre>
  
  <p>It is specifically erroring on this part:-</p>
  
  <pre><code>id="&lt;%= _.escape(menuItem.id)"
  </code></pre>
  
  <p>The id attribute is a number, here is the menuItem object:-</p>
  
  <pre><code>dataPath: ""
  helpType: "default"
  id: 0
  moduleName: "TestModule"
  modulePath: "interaction/test/testmodule"
  title: "Test Module Interaction"
  </code></pre>
  
  <p>I have tried making the id a string or making it the title attribute in the underscore template code just to see if I can get a test case working in any shape or form but I am stumped so far. I have a similar template doing pretty much the same thing with no errors. </p>
  
  <p>Any ideas what silliness I am engaging in to cause this? :-)</p>