fabpot/Twig — Issue #511: Three new methods
Author: webking
Created: 2011-11-09 16:16:17+00:00
State: open

Hello,
It would be nice to have these three new methods in Twig Environment:

$twig->setGlobals($someArrayWithGlobals) // First new method, for an array of global variables
->setFilters($someArrayWithFilters) // Second method, for an array of filters
->setFunctions($someArrayWithFunctions); // ... and the last one, for an array of functions