Skip to content
This repository has been archived by the owner on Aug 22, 2022. It is now read-only.

Commit

Permalink
2.0.0-rc.2
Browse files Browse the repository at this point in the history
  • Loading branch information
afbora committed Jun 22, 2022
1 parent 3623b93 commit 23f496a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 15 deletions.
23 changes: 15 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,21 @@ Kirby Blade use Laravel `illuminate/view` 9.x package and compatible with Kirby

This package enable [Laravel Blade](https://laravel.com/docs/9.x/blade) for your own Kirby applications.

## Kirby compatibility table

| Kirby version | Compatible plugin version |
|:--------------|:--------------------------|
| ^3.6 | ^1.9 |
| ^3.7 | ^2.0 |

## Important note before installation for Kirby

You should to override Kirby's `e()` helper function from root `index.php` of your application. Because Laravel Blade also has a helper function called `e()`.

```php
define('KIRBY_HELPER_E', false);
```

## Installation

### Installation with composer
Expand All @@ -31,14 +46,6 @@ git submodule add https://github.com/afbora/kirby-blade.git site/plugins/kirby-b
- Unzip downloaded file
- Copy/paste unzipped folder in your /site/plugins folder

#### Override Kirby `e()` helper

If you manually installed the plugin, you need to override Kirby's `e()` helper function from root `index.php`

```php
define('KIRBY_HELPER_E', false);
```

## What is Blade?

According to Laravel Blade documentation is:
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"template",
"template-engine"
],
"version": "2.0.0-rc.1",
"version": "2.0.0-rc.2",
"type": "kirby-plugin",
"license": "MIT",
"authors": [
Expand Down
6 changes: 0 additions & 6 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@
use Afbora\Template;
use Kirby\Cms\App as Kirby;

// override Kirby `e()` function to use Laravel `e()` function
// if you don't install via composer, you need to define `KIRBY_HELPER_E` from root index.php
if (defined('KIRBY_HELPER_E') === false) {
define('KIRBY_HELPER_E', false);
}

@include_once __DIR__ . '/vendor/autoload.php';

Kirby::plugin('afbora/blade', [
Expand Down

0 comments on commit 23f496a

Please sign in to comment.