Skip to content

Commit

Permalink
✏️ Add alternative render shorthand method
Browse files Browse the repository at this point in the history
  • Loading branch information
jenssegers committed Jul 31, 2019
1 parent 34e9f99 commit ed3edfd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ $blade = new Blade('views', 'cache');
echo $blade->make('homepage', ['name' => 'John Doe'])->render();
```

Alternatively you can use the shorthand method `render`:

```php
echo $blade->render('homepage', ['name' => 'John Doe']);
```

You can also extend Blade using the `directive()` function:

```php
Expand Down

0 comments on commit ed3edfd

Please sign in to comment.