René Kijewski 75dd2c92f3 Update dependencies
* Update version-incompatible dependencies in examples.
* Update version-incompatible dev-dependencies.
* Replaced deprecated `criterion::black_box`.
* Add `features = "simd"` to `winnow`. This adds a transitive
  dependency to `memchr`, on which we already depend on directly.
2025-05-18 23:06:41 +02:00
..
2025-03-11 19:31:06 +01:00
2025-03-11 19:31:06 +01:00
2025-05-18 23:06:41 +02:00
2025-01-31 21:22:33 +01:00
2025-03-11 19:31:06 +01:00

askama + salvo example web app

This is a simple web application that uses askama as template engine, and salvo as web framework. It lets the user of the web page select a display language, and asks for their name. The example shows the interaction between both projects, and serves as an example to use basic askama features such as base templates to a unified layout skeleton for your page, and less boilerplate in your template code.

To run the example execute cargo run in this folder. Once the project is running, open http://127.0.0.1:8080/ in your browser. To gracefully shut does the server, type ctrl+C in your terminal.

The files of the project contain comments for you to read. The recommended reading order is "templates/_layout.html", "templates/index.html", "Cargo.toml", "src/main.rs". Also please have a look at our book, which explains askama's features in greater detail.