mirror of
https://github.com/actix/examples
synced 2024-12-18 08:23:10 +01:00
8186a8cfea
Co-authored-by: Igor Aleksanov <popzxc@yandex.ru> Co-authored-by: Altug Sahin <altugsahin@gmail.com> Co-authored-by: Rob Ede <robjtede@icloud.com>
19 lines
481 B
Markdown
19 lines
481 B
Markdown
# template_tinytemplate
|
|
|
|
See the documentation for the minimalist template engine [tiny_template](https://docs.rs/tinytemplate/1.1.0/tinytemplate/).
|
|
|
|
## Usage
|
|
|
|
### Server
|
|
|
|
```bash
|
|
cd template_engines/tinytemplate
|
|
cargo run # (or ``cargo watch -x run``)
|
|
# Started http server: 127.0.0.1:8080
|
|
```
|
|
|
|
### 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
|