From 8650c6f0615abf2f47ee8229ca5f6cd5f2c0bcc9 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Wed, 12 May 2021 23:10:33 +0200 Subject: [PATCH] [twig-bundle] uncomment `encore_*_tags()` when 5.4 is used --- .../twig-bundle/5.4/config/packages/twig.yaml | 6 ++++++ symfony/twig-bundle/5.4/manifest.json | 9 +++++++++ .../twig-bundle/5.4/templates/base.html.twig | 18 ++++++++++++++++++ 3 files changed, 33 insertions(+) create mode 100644 symfony/twig-bundle/5.4/config/packages/twig.yaml create mode 100644 symfony/twig-bundle/5.4/manifest.json create mode 100644 symfony/twig-bundle/5.4/templates/base.html.twig diff --git a/symfony/twig-bundle/5.4/config/packages/twig.yaml b/symfony/twig-bundle/5.4/config/packages/twig.yaml new file mode 100644 index 00000000..f9f4cc53 --- /dev/null +++ b/symfony/twig-bundle/5.4/config/packages/twig.yaml @@ -0,0 +1,6 @@ +twig: + default_path: '%kernel.project_dir%/templates' + +when@test: + twig: + strict_variables: true diff --git a/symfony/twig-bundle/5.4/manifest.json b/symfony/twig-bundle/5.4/manifest.json new file mode 100644 index 00000000..30d5643b --- /dev/null +++ b/symfony/twig-bundle/5.4/manifest.json @@ -0,0 +1,9 @@ +{ + "bundles": { + "Symfony\\Bundle\\TwigBundle\\TwigBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/", + "templates/": "templates/" + } +} diff --git a/symfony/twig-bundle/5.4/templates/base.html.twig b/symfony/twig-bundle/5.4/templates/base.html.twig new file mode 100644 index 00000000..6b30e5e9 --- /dev/null +++ b/symfony/twig-bundle/5.4/templates/base.html.twig @@ -0,0 +1,18 @@ + + + + + {% block title %}Welcome!{% endblock %} + {# 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 %} + + + {% block body %}{% endblock %} + +