Add jinja2 tests to verify that jinja2 renders the same

This commit is contained in:
René Kijewski
2025-01-01 09:24:03 +01:00
parent 8a20caa136
commit d254942dbc
12 changed files with 109 additions and 6 deletions

View File

@@ -4,7 +4,7 @@ This is a simple web application that uses rinja as template engine, and
[actix-web](https://crates.io/crates/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,
basic rinja 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.

View File

@@ -1,6 +1,6 @@
{#-
This is the basic layout of our example application.
It is the core skeletton shared between all pages.
It is the core skeleton shared between all pages.
It expects the struct of any template that `{% extends %}` this layout to contain
(at least) a field `lang: Lang`, so it can be used in the `<html lang=` attribute.
-#}