bit3 / contao-twig
Twig integration for Contao OpenSource CMS
Installs: 8 743
Dependents: 10
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 6
Type:contao-module
Requires
- php: >=5.3
- contao-community-alliance/composer-installer: *
- contao-community-alliance/event-dispatcher: ~1
- contao/core: ~3.2
- twig/twig: 1.*
Requires (Dev)
Replaces
- contao-legacy/twig: 1.11
README
This module provide twig support for Contao.
To use twig instead of the contao engine, just use the TwigFrontendTemplate
or TwigBackendTemplate
class.
For content elements, you can use the TwigContentElement
class,
and for modules the TwigModule
class. These basic classes allready uses the Twig*Template classes.
You have to suffix your templates with .twig
, look at the examples in the templates
directory.