title: twig - pass function into template
body: <p>Currently I place my function in a class and pass an instance of this class into template and call my required function as a class method.</p>
  
  <pre><code>{{ unneededclass.blah() }}
  </code></pre>
  
  <p>I need to do like below</p>
  
  <pre><code>{{ blah() }}
  </code></pre>
  
  <p>Is it possible?</p>