1
0
mirror of https://github.com/actix/examples synced 2025-06-27 01:27:43 +02:00

add minijinja templating example

This commit is contained in:
Rob Ede
2022-10-16 21:20:01 +01:00
parent 6953e927ac
commit 5e8883e35a
11 changed files with 686 additions and 364 deletions

View File

@ -4,15 +4,10 @@ Minimal example of using the template [tera](https://github.com/Keats/tera) that
## Usage
### server
```sh
cd templating/tera
cargo run (or ``cargo watch -x run``)
# Started http server: 127.0.0.1:8080
cargo run
```
### web client
- [http://localhost:8080](http://localhost:8080)
- [http://localhost:8080/non-existing-page](http://localhost:8080/non-existing-page) - 404 page rendered using template
- <http://localhost:8080>
- <http://localhost:8080/non-existing-page> - 404 page rendered using template