Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Declare plugins for Twig in template.xml #988
With 2.0.0, I'll try to add plugins to the Twig Environnement. In the template.xml I declare those lines :
<parameters> <twig-extension>\Twig_Extension_Debug</twig-extension> <twig-extension>\autodoc\Plugin\Core\TwigZora</twig-extension> </parameters>
But, Twig doesn't recieve theses parameters.
Thanks for all great work in this new version !
added a commit
Sep 6, 2013
I have fixed this issue in the develop branch of phpDocumentor2. Unfortunately I had to change the format of the parameters due to a limitation in JMS Serializer.
You can add the following to your template:
You can also set the parameter twig-debug to the value true; this will enable debug mode for Twig and include the debug extension