Added twig macro to render a tree