Skip to content

Commit ed3edfd

Browse files
committed
✏️ Add alternative render shorthand method
1 parent 34e9f99 commit ed3edfd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ $blade = new Blade('views', 'cache');
2828
echo $blade->make('homepage', ['name' => 'John Doe'])->render();
2929
```
3030

31+
Alternatively you can use the shorthand method `render`:
32+
33+
```php
34+
echo $blade->render('homepage', ['name' => 'John Doe']);
35+
```
36+
3137
You can also extend Blade using the `directive()` function:
3238

3339
```php

0 commit comments

Comments
 (0)