An open API service indexing awesome lists of open source software.

https://github.com/jaxon-php/jaxon-blade

Jaxon view renderer for Blade templates
https://github.com/jaxon-php/jaxon-blade

Last synced: about 2 months ago
JSON representation

Jaxon view renderer for Blade templates

Awesome Lists containing this project

README

        

Jaxon View for Blade
====================

Render Blade templates in Jaxon applications.

Installation
------------

Install this package with Composer.

```json
"require": {
"jaxon-php/jaxon-blade": "^3.0"
}
```

Usage
-----

Foreach directory containing Blade templates, add an entry to the `app.views` section in the configuration.

```php
'app' => array(
'views' => array(
'demo' => array(
'directory' => '/path/to/demo/views',
'extension' => '.blade.php',
'renderer' => 'blade',
),
),
),
```

In the application classes, this is how to render a view in this directory.

```php
$this->view()->render('demo::/sub/dir/file');
```

Read the [documentation](https://www.jaxon-php.org/docs/v3x/advanced/views.html) to learn more about views in Jaxon applications.