Skip to content

Commit

Permalink
Updated the README.
Browse files Browse the repository at this point in the history
  • Loading branch information
feuzeu committed May 26, 2017
1 parent 3d6a013 commit 77f46ae
Showing 1 changed file with 40 additions and 2 deletions.
42 changes: 40 additions & 2 deletions README.md
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.

0 comments on commit 77f46ae

Please sign in to comment.