Download the PHP package hananils/kirby-snippetwhen-helper without Composer
On this page you can find all versions of the php package hananils/kirby-snippetwhen-helper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download hananils/kirby-snippetwhen-helper
More information about hananils/kirby-snippetwhen-helper
Files in hananils/kirby-snippetwhen-helper
Download hananils/kirby-snippetwhen-helper
More information about hananils/kirby-snippetwhen-helper
Files in hananils/kirby-snippetwhen-helper
Vendor hananils
Package kirby-snippetwhen-helper
Short Description Helper function for Kirby to embed snippets only when a condition is met.
License MIT
Package kirby-snippetwhen-helper
Short Description Helper function for Kirby to embed snippets only when a condition is met.
License MIT
Please rate this library. Is it a good library?
Informations about the package kirby-snippetwhen-helper
snippetWhen is a helper function for Kirby 3 to conditionally embed snippets.
Installation
Download
Download and copy this repository to /site/plugins/snippetwhen-helper
.
Git submodule
Composer
Usage
snippetWhen($snippet, $condition, $expected, $data)
Conditionally embeds a snippet:
$snippet
: the name of the snippet$condition
: a condition that either evaluates totrue
orfalse
$expected
: the expected result of the condition, defaults totrue
$data
: data object passed to the snippet
License
This plugin is provided freely under the hana+nils · Büro für Gestaltung.
We create visual designs for digital and analog media.
All versions of kirby-snippetwhen-helper with dependencies
PHP Build Version
Package Version
Requires
getkirby/composer-installer Version
^1.1
The package hananils/kirby-snippetwhen-helper contains the following files
Loading the files please wait ....