mirror of
https://github.com/notrab/dumbo.git
synced 2025-01-16 21:58:25 +01:00
19819ca8d1
* add new example for using smarty templating * update readme * Update examples/context-view-smarty/README.md --------- Co-authored-by: Dominik Prinzensteiner <dominik@prinzensteiner.at> Co-authored-by: Jamie Barton <jamie@notrab.dev>
364 B
364 B
Smarty Example
This example demonstrates how to pass a render closure to context and generate a view using the smarty template engine.
Running the Example
-
Install dependencies:
composer install
-
Start the server:
composer start
-
Access the demo route:
curl http://localhost:8000