René Kijewski e95bc340ac Don't link latest version of the book
This way we will be able to decide whether we want to link the
bleeding-edges version of the book, or (more likely) the last stable
release.
2024-07-16 13:04:41 +02:00

44 lines
1.6 KiB
HTML

{% extends "_layout.html" %}
{%- block title -%}
{%- match lang -%}
{%- when Lang::en -%} Hello, {{name}}!
{%- when Lang::de -%} Hallo, {{name}}!
{%- when Lang::fr -%} Bonjour, {{name}}!
{%- endmatch -%}
{%- endblock -%}
{%- block content -%}
<h1>
{%- match lang -%}
{%- when Lang::en -%} Hello!
{%- when Lang::de -%} Hallo!
{%- when Lang::fr -%} Bonjour!
{%- endmatch -%}
</h1>
<p>
{%- match lang -%}
{%- when Lang::en -%}
Hello, <strong>{{name}}</strong>, nice to meet you! {#-~#}
I'm a <a href="https://rinja.readthedocs.io/">Rinja</a> example application.
{%- when Lang::de -%}
Hallo, <strong>{{name}}</strong>, schön dich kennenzulernen! {#-~#}
Ich bin eine <a href="https://rinja.readthedocs.io/">Rinja</a>-Beispielanwendung.
{%- when Lang::fr -%}
Bonjour, <strong>{{name}}</strong>, ravi de vous rencontrer ! {#-~#}
Je suis une application d'exemple de <a href="https://rinja.readthedocs.io/">Rinja</a>.
{%- endmatch -%}
</p>
<h2>
<a href="{{ req.url_for("index_handler", [lang])? }}?name={{ name|urlencode }}">
{%- match lang -%}
{%- when Lang::en -%} Back to the first page.
{%- when Lang::de -%} Zurück zur ersten Seite.
{%- when Lang::fr -%} Retour à la première page.
{%- endmatch -%}
</a>
</h2>
{%- call lang_select("greeting_handler", name|urlencode|fmt("?name={}")) -%}
{%- endblock -%}