templates/base.html.twig line 1

  1. <!--c'est l'ossature du site pour donner les pages dynamiques -->
  2. {# commentaire #}
  3. <!DOCTYPE html>
  4.  
  5.     <head>
  6.         <meta charset="UTF-8">
  7.         <meta name="description" content="{% block meta_description %} {% endblock %}" /> 
  8.         {# le block meta_description permet de relier les différentes pages description #}
  9.         
  10.         <title>{% block title %}Welcome!{% endblock %}</title>
  11.         <link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text></svg>">
  12.         {# Run `composer require symfony/webpack-encore-bundle` to start using Symfony UX #}
  13.         {% block stylesheets %}
  14.             {{ encore_entry_link_tags('app') }}
  15.         {% endblock %}
  16.         {% block javascripts %}
  17.             {{ encore_entry_script_tags('app') }}
  18.         {% endblock %}
  19.     </head>
  20.     <body>
  21.     
  22.             
  23.                 {% include 'nav.html.twig' %}
  24.                 <!-- on met include et non extends -->
  25.                 <!-- on a créé 1 fichier nav.html.twig dans templates -->
  26.                 <!-- copier coller la barre de nav de Bootstrap -->
  27.         {% block body %}{% endblock %}
  28.     </body>
  29. </html>