gplcart / twig
A GPL Cart module that allows to render .twig templates
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:gplcart-module
pkg:composer/gplcart/twig
Requires
- gplcart/composer-module-installer: ^1
- twig/twig: 1.33.0
This package is not auto-updated.
Last update: 2025-11-09 09:39:02 UTC
README
Twig is a GPL Cart module that integrates TWIG template engine into your GPL Cart site. Essentially it tries to parse every template file with .twig extension
Custom TWIG functions added by this module:
- error()
- text()
- access()
- url()
- date()
- attributes()
- config()
- configTheme()
- teaser()
- filter()
- truncate()
- path()
See \gplcart\core\Controller for corresponding methods
Installation
This module requires 3-d party library which should be downloaded separately. You have to use Composer to download all the dependencies.
- From your web root directory:
composer require gplcart/twig. If the module was downloaded and placed intosystem/modulesmanually, runcomposer updateto make sure that all 3-d party files are presented in thevendordirectory. - Go to
admin/module/listend enable the module - Optionally adjust settings on
admin/module/settings/twig