mirror of
https://github.com/askama-rs/askama.git
synced 2026-04-27 06:37:52 +00:00
Add jinja2 tests to verify that jinja2 renders the same
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
-#}
|
||||
|
||||
Reference in New Issue
Block a user