title: How to call jQuery function inside jquery tmpl?
body: <p>This is my code:</p>
  
  <pre><code>&lt;script id="quotes" type="text/x-jquery-tmpl"&gt;
      {{each(i,market) Markets}}
          &lt;span style="margin-left:3px;"&gt;${market.Symbol}&lt;/span&gt;&amp;nbsp;
          &lt;span class="lastPrice"&gt;${market.CurrentQuote.LastPrice}&lt;/span&gt;&amp;nbsp;
      {{/each}} 
  &lt;/script&gt;
  </code></pre>
  
  <p>What I want is to make LastPrice look like "3.00". I tried to use jquery's number function, but can't make it work. For example, if I do this:</p>
  
  <pre><code>$.number(${market.CurrentQuote.LastPrice}, 2)
  </code></pre>
  
  <p>it shows $.number(3, 2) instead of 3.00. If I do this,</p>
  
  <pre><code>${number($market.CurrentQuote.LastPrice, 2)}
  </code></pre>
  
  <p>it returns nothing.</p>