gplcart/twig

A GPL Cart module that allows to render .twig templates

Maintainers

Details

github.com/gplcart/twig

Source

Issues

Installs: 1

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

Type:gplcart-module

dev-master 2018-03-10 20:50 UTC

This package is not auto-updated.

Last update: 2024-04-28 00:53:21 UTC


README

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