title: can I include a text/template script from a src?
body: <p>I was trying to create a basic app, using backbone, underscore, and Parse.</p>
  
  <p>In my index.html, I tried including some scripts like this:</p>
  
  <pre><code>&lt;script data-main="js/main" src="../bower_components/requirejs/require.js"&gt;&lt;/script&gt;
  &lt;script type="text/template" id="login-template" src="js/templates/login.js"&gt;
  </code></pre>
  
  <p>When I tried to do the following on my backbone part, it did not work.</p>
  
  <pre><code>template: _.template($('#login-template').html());
  // ...
  render: function() {
      this.$el.html(this.template());
  }
  </code></pre>
  
  <p>However, when I changed my script, and added it directly in the html document, it worked fine.</p>
  
  <pre><code>&lt;script type="text/template" id="login-template"&gt;
    &lt;header id="header"&gt;&lt;/header&gt;
    &lt;div class="login"&gt;
      &lt;form class="login-form"&gt;
        &lt;h2&gt;Log In&lt;/h2&gt;
        &lt;div class="error" style="display:none"&gt;&lt;/div&gt;
        &lt;input type="text" id="login-username" placeholder="Username" /&gt;
        &lt;input type="password" id="login-password" placeholder="Password" /&gt;
        &lt;button&gt;Log In&lt;/button&gt;
      &lt;/form&gt;
  &lt;/script&gt;
  </code></pre>
  
  <p>why is this? Is there any way to include templates from an external source in a <code>&lt;script&gt;</code> tag?</p>
  
  <p>(I cannot use <code>$.get</code> for this case, as it's not supposed to use web server right now and keep getting XHR errors doing it normally.)</p>