title: jquery-tmpl - template function not working
body: <p>The following code:</p>
  
  <pre><code>jQuery(document).ready(function($) {
      function getBooks() {
          var query = "ajax.php?do=allbooks";
              $.ajax({
                  dataType: "jsonp",
                  url: query,
                  jsonp: "callback",
                  success: showBooks
              });
      }
  
      function showBooks(data) {
      $("#bookTmpl").tmpl(data, { 
          getName: function() {
            return 'bla';
          }
      }).appendTo( "#test" ); 
      }
  
      getBooks();
  });
  </code></pre>
  
  <p>What I am trying to do is use the getName()-function in my template. </p>
  
  <p>Let's pretend my template looks like this:</p>
  
  <pre><code>&lt;script id="bookTmpl" type="text/x-jquery-tmpl"&gt;
      &lt;li&gt;
      ${title} by ${author}&lt;br /&gt;
      Rating: ${rating} -&gt; ${getName()}
      &lt;/li&gt;
  &lt;/script&gt;
  </code></pre>
  
  <p>What do I have to change to make it work? Right now, the function isn't even executed. Everything else works.</p>