dumbo/examples/context-view-smarty
Dominik Prinzensteiner 19819ca8d1
Some checks failed
Tests / build (push) Has been cancelled
Release / Release (push) Has been cancelled
Feature/smarty example (#71)
* 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>
2024-11-19 09:02:06 +00:00
..
2024-11-19 09:02:06 +00:00
2024-11-19 09:02:06 +00:00
2024-11-19 09:02:06 +00:00
2024-11-19 09:02:06 +00:00

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

  1. Install dependencies:

    composer install
    
  2. Start the server:

    composer start
    
  3. Access the demo route:

      curl http://localhost:8000