-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
40 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,40 @@ | ||
# jaxon-blade | ||
Jaxon view renderer for Blade templates | ||
Jaxon View for Blade | ||
==================== | ||
|
||
Render Blade templates in Jaxon applications. | ||
|
||
Installation | ||
------------ | ||
|
||
Install this package with Composer. | ||
|
||
```json | ||
"require": { | ||
"jaxon-php/jaxon-blade": "~2.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('/sub/dir/file'); | ||
``` | ||
|
||
Read the [views documentation](https://www.jaxon-php.org/docs/armada/views.html) to learn more about views. |