mirror of
https://github.com/actix/examples
synced 2024-12-18 00:13:57 +01:00
1a9a15c7db
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Rob Ede <robjtede@icloud.com> |
||
---|---|---|
.. | ||
src | ||
static/templates | ||
Cargo.toml | ||
README.md |
Handlebars
This is an example of how to use Actix Web with the Handlebars templating language, which is currently the most popular crate that achieves this.
Usage
cd templating/handlebars
cargo run
After starting the server, you may visit the following pages:
- 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