title: How to create a twig custom tag that executes a callback?
body: <p>I'm trying to create a custom Twig tag such as this:</p>
  
  <pre><code>{% mytag 'foo','bar' %}
     Hello world!!
  {% endmytag %}
  </code></pre>
  
  <p>This tag should print the output of <code>my func("Hello world!!", "foo", "bar")</code>.</p>
  
  <p><strong>Can anybody post some sample code for creating such custom tag?</strong> One that may accept a arbitrary number of parameters would me even more appreciated.</p>
  
  <p><strong>note</strong>: I'm not interested in creating a custom function, I need to have the body of the tag passed in as the first parameter.</p>