nerdcel/kirby3-blade-extensions

Kirby3 plugin to add directives and ifs to blade.

2.0 2024-04-30 08:33 UTC

This package is auto-updated.

Last update: 2024-04-30 08:35:02 UTC


README

This plugin provides custom blade directives/ifs for your Kirby project, when using the leitsch/blade kirby3 plugin. To set your own custom directives/ifs, please see the Options section in this README file.

This plugin is completely free and published under the MIT license. However, if you are using it in a commercial project and want to help me keep up with maintenance, please consider making a donation of your choice.

Installation

Download

Download and copy this repository to /site/plugins/kirby3-blade-extensions.

Git submodule

git submodule add https://github.com/nerdcel/kirby3-blade-extensions.git site/plugins/kirby3-blade-extensions

Composer

composer require nerdcel/kirby3-blade-extensions

Available directives

  • siteTitle
  • pageTitle
  • dd
  • level
  • vueData
  • vueMethod
  • inlineScript (endinlineScript)
  • meta

Available ifs

  • viteDevMode

Available components

  • vueComponent

Options

The following options are available to be set using your site/config/config.php

'nerdcel.kirby3-blade-extensions' => [
    'directives' => ['name' => method(), ...],
    'ifs' => ['name' => method(), ...]
]

If that doesn't work, rund npm install first.

License

MIT

Credits