1
0
mirror of https://github.com/actix/examples synced 2024-11-27 16:02:57 +01:00
examples/templating/handlebars/README.md

18 lines
503 B
Markdown
Raw Normal View History

2019-06-08 19:47:39 +02:00
# Handlebars
This is an example of how to use Actix Web with the [Handlebars](https://crates.io/crates/handlebars) templating language, which is currently the most popular crate that achieves this.
## Usage
2019-06-08 19:47:39 +02:00
2022-02-18 04:36:04 +01:00
```sh
2022-02-18 03:13:55 +01:00
cd templating/handlebars
cargo run
```
After starting the server, you may visit the following pages:
2019-06-08 19:47:39 +02:00
- http://localhost:8080
- http://localhost:8080/Emma/documents
- http://localhost:8080/Bob/passwords
- http://localhost:8080/some-non-existing-page - 404 error rendered using template