Skip to content

tsnorri/grav-plugin-twig-lambda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twig Lambda Plugin

The Twig Lambda Plugin is for Grav CMS. It may be used to enable the Twig Lambda extension by Damian Połać.

Installation

Installing the Twig Lambda plugin can be done in one of two ways. The GPM (Grav Package Manager) installation method enables you to quickly and easily install the plugin with a simple terminal command, while the manual method enables you to do so via a zip file.

GPM Installation (Preferred)

The simplest way to install this plugin is via the Grav Package Manager (GPM) through your system's terminal (also called the command line). From the root of your Grav install type:

bin/gpm install twig-lambda

This will install the Twig Lambda plugin into your /user/plugins directory within Grav. Its files can be found under /your/site/grav/user/plugins/twig-lambda.

Manual Installation

To install this plugin, just download the zip version of this repository and unzip it under /your/site/grav/user/plugins. Then, rename the folder to twig-lambda. You can find these files on GitHub or via GetGrav.org.

You should now have all the plugin files under

/your/site/grav/user/plugins/twig-lambda

NOTE: This plugin is a modular component for Grav which requires Grav and the Error and Problems to operate.

Configuration

Before configuring this plugin, you should copy the user/plugins/twig-lambda/twig-lambda.yaml to user/config/plugins/twig-lambda.yaml and only edit that copy.

Here is the default configuration and an explanation of available options:

enabled: true

Usage

The Twig Lambda extension needs to be installed with composer require dpolac/twig-lambda. Please refer to the extension documentation.

Additionally, this plugin adds one filter, dictionary\_from\_pairs. It may be used to create a Dictionary from an array that contains keys and values as arrays of two elements.

About

Enable the Twig Lambda extension

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages