 <p>Sure, the function like <code>sprintf</code> is <code>sprintf</code>. You can put functions in the stash and call them from TT, and if you want them to be available all the time you can add them to the <code>TEMPLATE_VARS</code> in your view.</p>