Browse Source

Config for twig

imwald
Nuša Pukšič 1 year ago
parent
commit
331f5ea50d
  1. 6
      config/packages/twig.yaml
  2. 5
      config/packages/twig_component.yaml
  3. 5
      config/routes/ux_live_component.yaml

6
config/packages/twig.yaml

@ -0,0 +1,6 @@ @@ -0,0 +1,6 @@
twig:
file_name_pattern: '*.twig'
when@test:
twig:
strict_variables: true

5
config/packages/twig_component.yaml

@ -0,0 +1,5 @@ @@ -0,0 +1,5 @@
twig_component:
anonymous_template_directory: 'components/'
defaults:
# Namespace & directory for components
App\Twig\Components\: 'components/'

5
config/routes/ux_live_component.yaml

@ -0,0 +1,5 @@ @@ -0,0 +1,5 @@
live_component:
resource: '@LiveComponentBundle/config/routes.php'
prefix: '/_components'
# adjust prefix to add localization to your components
#prefix: '/{_locale}/_components'
Loading…
Cancel
Save