Add new files and folders from new packages.
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Thu, 28 Jun 2018 09:45:20 +0000 (11:45 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Thu, 28 Jun 2018 09:45:20 +0000 (11:45 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
config/packages/translation.yaml [new file with mode: 0644]
config/packages/twig.yaml [new file with mode: 0644]
config/routes/dev/twig.yaml [new file with mode: 0644]
templates/base.html.twig [new file with mode: 0644]
translations/.gitignore [new file with mode: 0644]

diff --git a/config/packages/translation.yaml b/config/packages/translation.yaml
new file mode 100644 (file)
index 0000000..1edfbe2
--- /dev/null
@@ -0,0 +1,7 @@
+framework:
+    default_locale: '%locale%'
+    translator:
+        paths:
+            - '%kernel.project_dir%/translations'
+        fallbacks:
+            - '%locale%'
diff --git a/config/packages/twig.yaml b/config/packages/twig.yaml
new file mode 100644 (file)
index 0000000..3b315dc
--- /dev/null
@@ -0,0 +1,4 @@
+twig:
+    paths: ['%kernel.project_dir%/templates']
+    debug: '%kernel.debug%'
+    strict_variables: '%kernel.debug%'
diff --git a/config/routes/dev/twig.yaml b/config/routes/dev/twig.yaml
new file mode 100644 (file)
index 0000000..f4ee839
--- /dev/null
@@ -0,0 +1,3 @@
+_errors:
+    resource: '@TwigBundle/Resources/config/routing/errors.xml'
+    prefix: /_error
diff --git a/templates/base.html.twig b/templates/base.html.twig
new file mode 100644 (file)
index 0000000..043f42d
--- /dev/null
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<html>
+    <head>
+        <meta charset="UTF-8">
+        <title>{% block title %}Welcome!{% endblock %}</title>
+        {% block stylesheets %}{% endblock %}
+    </head>
+    <body>
+        {% block body %}{% endblock %}
+        {% block javascripts %}{% endblock %}
+    </body>
+</html>
diff --git a/translations/.gitignore b/translations/.gitignore
new file mode 100644 (file)
index 0000000..e69de29