Download the PHP package eric-chau/twig-skill without Composer
On this page you can find all versions of the php package eric-chau/twig-skill. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package twig-skill
Twig skill
This skill is an integration of Twig
into Jarvis micro-framework.
What it brings
When this skill is enabled, it brings:
$app['twig']
service, an unique instance of\Twig_Environment
.- On
$app['twig']
first call, the eventJarvis\Skill\Twig\TwigReadyEvent
(event name:twig.ready
) will be broadcasted. Note thatTwigReadyEvent
is a permanent event. - In all Twig templates, the variable
router
(=$app['router']
) is available.
Configuration options
You must add a 'twig' key in the 'extra' section to pass your options:
Note that templates_paths
is a required parameter. Other options:
debug
: if not provided, Jarvisdebug
parameter is used.auto_reload
:true
by default.strict_variables
:true
by default.
You can see complete options list on Twig documentation.
All versions of twig-skill with dependencies
PHP Build Version
Package Version
Requires
twig/twig Version
~1.25.0
The package eric-chau/twig-skill contains the following files
Loading the files please wait ....