contao-community-alliance / contao-twig
Twig integration for Contao OpenSource CMS
Package info
github.com/contao-community-alliance/twig
Type:contao-module
pkg:composer/contao-community-alliance/contao-twig
1.12.1
2016-11-18 14:11 UTC
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: 2026-03-06 12:55:19 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.