title: Call a function inside an underscore template using backbone
body: <p>Just a thing I try to do that would really simplify my life right now.</p>
  
  <p>How can I do that :</p>
  
  <p>This is my view in app file</p>
  
  <pre><code>    window.ArtView = Backbone.View.extend({
          template:_.template($('#art').html()),
          render:function (eventName) {
              var output="blablbla";
              $(this.el).html(this.template({"output":output}));
              return this;
          }
      });
      ...
      // function that I would like to call
      function callFunction(){
          console.log('it works!');
      }
  </code></pre>
  
  <p>Template in index.html</p>
  
  <pre><code>&lt;script type="text/tempate" id="art"&gt;
          &lt;div data-role="header" class="header" data-position="fixed"&gt;
              &lt;a href="#" data-icon="back" class="back ui-btn-left"&gt;Back&lt;/a&gt;
          &lt;/div&gt;
          &lt;div data-role="content" class="content"&gt;
              callFunction();
              &lt;% console.log(output) %&gt;
          &lt;/div&gt;
  &lt;/script&gt;
  </code></pre>
  
  <p>How can I call callFunction() inside my template or something alike ?</p>
  
  <p>Any idea ?</p>
  
  <p>Thanks !</p>