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:
@ -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
|
||||
|
Reference in New Issue
Block a user