Skip to content
/ twig Public

A GPL Cart module that allows to render .twig templates

License

Notifications You must be signed in to change notification settings

gplcart/twig

Repository files navigation

Build Status Scrutinizer Code Quality

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.

  1. From your web root directory: composer require gplcart/twig. If the module was downloaded and placed into system/modules manually, run composer update to make sure that all 3-d party files are presented in the vendor directory.
  2. Go to admin/module/list end enable the module
  3. Optionally adjust settings on admin/module/settings/twig

About

A GPL Cart module that allows to render .twig templates

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages