title: Function not found in jTemplate
body: <p>I'm having a weird issue with a function I'm trying to call from within a jTemplates template giving the error "XYZ.getFriendlyName is not a function". It seems like I must have overlooked something simple, but I've tried everything I can think of and the error persists. The code looks like this:</p>
  
  <pre><code>&lt;input type="text" value="{#if $T.RowId !== null}{XYZ.getFriendlyName($T.RowId)}{#/if}"/&gt;
  </code></pre>
  
  <p>I've tried removing everything in the function to rule out a syntax error, renaming the function and moving it into the global namespace, moving the function itself into the page the template is on, before the template code.. Even putting everything in a ternary operator, which so far I haven't gotten to work at all in jTemplates. I continue to get the same error. Does anyone know a way I can fix this problem?</p>
  
  <p>Thanks!
  Garann</p>