title: Call a function in an ExtJS XTemplate
body: <p>I'm familiar with using a function to determine a specific condition using xtemplate but not sure how to directly call a function without the conditional if statement.</p>
  
  <p>My code, for example, wants to append some characters to a string that I am using within my xtemplate.  I think the best way to do it is append the characters when the xtemplate is rendered.</p>
  
  <pre><code>var myTpl = new Ext.XTemplate(
    '&lt;tpl for="."&gt;',
  
      '&lt;tpl if="this.isThumbnailed(thumbnailed) == true"&gt;',
  
        '&lt;img src=this.getThumbUrl(rawThumbUrl)/&gt;', //this call to function does not work, also tried variations of this.
  
      '&lt;/tpl&gt;',
  
    '&lt;/tpl&gt;',
  
   {
    isThumbnailed : function(thumbnailed) {
      return ...;
    },
    getThumbUrl : function(rawThumbUrl) {
      //... //this function does not get called.
      return ...;
    }
  
   }
  )
  </code></pre>