{% extends "_layout.html" %} {%- block title -%} {#- In here you can see how to use the language URL compment to select the text to display. -#} {%- match lang -%} {%- when Lang::en -%} Hello! {%- when Lang::de -%} Hallo! {%- when Lang::fr -%} Bonjour! {%- endmatch -%} {%- endblock -%} {%- block content -%}

{%- match lang -%} {%- when Lang::en -%} Hello! {%- when Lang::de -%} Hallo! {%- when Lang::fr -%} Bonjour! {%- endmatch -%}

{#- If your text contains long lines, you may want to split them, so you as a developer have an easier time reading them. If you don't want to end up with a multitude of spaces in the generated content, you can use empty comments as seen below: `#-~#`. This would strip the space before the comment, and leave a newline character after the comment. Another option would be `#~-#`, so that single space remains. -#} {%- match lang -%} {%- when Lang::en -%} I would like to say hello. {#-~#} Would you please tell me your name? {%- when Lang::de -%} Ich möchte dir gerne hallo sagen. {#-~#} Bitte nenne mir doch deinen Namen! {%- when Lang::fr -%} Je voudrais vous dire bonjour. {#-~#} Pourriez-vous me donner votre nom ? {%- endmatch -%}

{#- The called macro is defined in base template "_layout.html", and used to display the language selection footer. ~#} {%- call lang_select("index") -%} {%- endblock -%}