mirror of
https://github.com/notrab/dumbo.git
synced 2025-01-17 06:08:31 +01:00
24 lines
364 B
Markdown
24 lines
364 B
Markdown
|
# Context Example
|
||
|
|
||
|
This example demonstrates how to pass a render closure to context and generate a view using the latte template engine.
|
||
|
|
||
|
## Running the Example
|
||
|
|
||
|
1. Install dependencies:
|
||
|
|
||
|
```bash
|
||
|
composer install
|
||
|
```
|
||
|
|
||
|
2. Start the server:
|
||
|
|
||
|
```bash
|
||
|
composer start
|
||
|
```
|
||
|
|
||
|
3. Access the demo route:
|
||
|
|
||
|
```bash
|
||
|
curl http://localhost:8000
|
||
|
```
|