nerdcel / kirby3-blade-extensions
Kirby3 plugin to add directives and ifs to blade.
Installs: 1 596
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:kirby-plugin
Requires
- php: >= 8.1 < 8.4
- getkirby/composer-installer: ^1.2.1
- illuminate/config: ^v11.5.0
- illuminate/view: ^v11.5.0
- matthiasmullie/minify: ^1.3.70
Requires (Dev)
- phpstan/phpstan: ^1.10
- roave/security-advisories: dev-latest
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