]> Raphaël G. Git Repositories - airbundle/commitdiff
Add lang handling
authorRaphaël Gertz <git@rapsys.eu>
Mon, 19 Oct 2020 07:49:59 +0000 (09:49 +0200)
committerRaphaël Gertz <git@rapsys.eu>
Mon, 19 Oct 2020 07:49:59 +0000 (09:49 +0200)
Resources/views/base.html.twig

index 6045a6e50c6ddf532154e3f526d93bc8be48a06f..e103e060347d33a4eb087a987af4cc99973634c8 100644 (file)
@@ -1,5 +1,5 @@
 <!DOCTYPE html>
 <!DOCTYPE html>
-<html>
+<html{% if lang is defined and lang %} lang="{{ lang }}"{% endif %}>
        <head>
                {% block metas %}<meta charset="UTF-8">{% endblock %}
                <title>{% block title %}Welcome!{% endblock %}</title>
        <head>
                {% block metas %}<meta charset="UTF-8">{% endblock %}
                <title>{% block title %}Welcome!{% endblock %}</title>