Twig extension for PHP (Twig_Template::getAttribute() as C function twig_template_get_attributes()) http://derickrethans.nl/twig-extension.html