title: RequireJS text plugin - error when loading HTML template
body: <p>I'm using RequireJS with the <a href="https://github.com/requirejs/text" rel="nofollow">text plugin</a> for my HTML-templates.</p>
  
  <pre><code>define(
    [
      'text!./../../templates/twitterTemplate.html',
      'jquery',
      'underscore',
      'backbone'
    ],
  
    function(twitterTemplate, $, _, Backbone) {
  
      var compiled = _.template(twitterTemplate);
  
      return Backbone.View.extend({
        el: '#tweets',
  
        render: function() {
          this.$el.append(compiled(this.model));
  
          return this;
        }
      });
    }
  );
  </code></pre>
  
  <p>Everything works fine when running in a browser.
  But when I run my jasmine-tests from Node.js, I get the following error when Node.js <code>require</code> is trying to load the <code>twitterTemplate.html</code> file:</p>
  
  <pre><code>(function (exports, require, module, __filename, __dirname) { &lt;h4&gt;&lt;%= title %&gt;
                                                                ^
     Message:
       SyntaxError: Unexpected token &lt;
     Stacktrace:
       SyntaxError: Unexpected token &lt;
      at Module._compile (module.js:437:25)
      at Object.Module._extensions..js (module.js:467:10)
      at Module.load (module.js:356:32)
      at Function.Module._load (module.js:312:12)
      at Module.require (module.js:362:17)
  </code></pre>
  
  <p>I've probably misunderstood something. 
  Grateful for answers that helps me solve this issue.</p>
  
  <p>Thanks!</p>