Browse Source

twig recipe

François Drouhard 2 years ago
parent
commit
6301fd1e4e
3 changed files with 25 additions and 5 deletions
  1. 4 0
      config/packages/twig.yaml
  2. 4 5
      symfony.lock
  3. 17 0
      templates/base.html.twig

+ 4 - 0
config/packages/twig.yaml

@@ -4,3 +4,7 @@ twig:
     strict_variables: '%kernel.debug%'
     form_themes: ['bootstrap_5_layout.html.twig']
     exception_controller: null
+
+when@test:
+    twig:
+        strict_variables: true

+ 4 - 5
symfony.lock

@@ -521,16 +521,15 @@
         "version": "v4.2.8"
     },
     "symfony/twig-bundle": {
-        "version": "3.3",
+        "version": "5.4",
         "recipe": {
             "repo": "github.com/symfony/recipes",
-            "branch": "master",
-            "version": "3.3",
-            "ref": "369b5b29dc52b2c190002825ae7ec24ab6f962dd"
+            "branch": "main",
+            "version": "5.4",
+            "ref": "bb2178c57eee79e6be0b297aa96fc0c0def81387"
         },
         "files": [
             "config/packages/twig.yaml",
-            "config/routes/dev/twig.yaml",
             "templates/base.html.twig"
         ]
     },

+ 17 - 0
templates/base.html.twig

@@ -1,6 +1,7 @@
 <!DOCTYPE html>
 <html>
     <head>
+<<<<<<< ours
         <meta charset="UTF-8" />
 		<meta name="viewport" content="width=device-width, initial-scale=1">
         <title>{% block title %}Videothèque{% endblock %}</title>
@@ -34,5 +35,21 @@
 
 		{{ encore_entry_script_tags('app') }}
 		{% block javascripts %}{% endblock %}
+=======
+        <meta charset="UTF-8">
+        <title>{% block title %}Welcome!{% endblock %}</title>
+        <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>">
+        {# Run `composer require symfony/webpack-encore-bundle` to start using Symfony UX #}
+        {% block stylesheets %}
+            {{ encore_entry_link_tags('app') }}
+        {% endblock %}
+
+        {% block javascripts %}
+            {{ encore_entry_script_tags('app') }}
+        {% endblock %}
+    </head>
+    <body>
+        {% block body %}{% endblock %}
+>>>>>>> theirs
     </body>
 </html>