Recursive macro in Twig
<p>I've added a macro to Twig and I'm trying to get that Macro to call itself. It appears that using _self appears to now be frowned on and doesn't work, returning the error:</p>

<pre><code>using the dot notation on an instance of Twig_Template is deprecated since version 1.28 and won't be supported anymore in 2.0.
</code></pre>

<p>If I do import _self as x, then it works when I initially call the macro:</p>

<pre><code>{% import _self as twigdebug %}
{{ twigdebug.recursiveTree() }}
</code></pre>

<p>But I can't then call the macro recursively using _self or twigdebug.recursiveTree.</p>

<p>Is there a way to do this?</p>