askama/examples/actix-web-app
René Kijewski b49e42f0ea Use cargo reference manifest section order
In [#131] I added a check that ensures that the section in `Cargo.toml`
(and there values) are in a specific order. I invented the order quite
randomly, in the order which I thought might be useful.

This PR changes the order to be the same as in Cargo's reference about
[The Manifest Format]. Also some missing softlinks were added.

[#131]: <https://github.com/rinja-rs/rinja/pull/131>
[The Manifest Format]: <https://doc.rust-lang.org/cargo/reference/manifest.html>
2024-12-13 10:00:48 +01:00
..
2024-11-26 05:57:09 +01:00
2024-07-07 02:24:03 +02:00
2024-07-07 02:24:03 +02:00
2024-07-07 20:47:02 +02:00

rinja + actix-web example web app

This is a simple web application that uses rinja as template engine, and actix-web 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 rinja features such as base templates to a unified layout skeletton 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 rinja's features in greater detail.