contao-community-alliance / contao-twig
Twig integration for Contao OpenSource CMS
Installs: 8 360
Dependents: 5
Suggesters: 0
Security: 0
Stars: 2
Watchers: 6
Forks: 5
Open Issues: 7
Type:contao-module
Requires
- php: >=5.3
- contao-community-alliance/composer-plugin: ~2.0
- contao-community-alliance/event-dispatcher: ~1.0
- contao/core: ~3.2
- twig/twig: ~1.0
Requires (Dev)
- phpcq/all-tasks: ~1.0
Replaces
- bit3/contao-twig: 1.12.1
- contao-legacy/twig: 1.12.1
This package is auto-updated.
Last update: 2024-11-06 09:42:55 UTC
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.