Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 42cfc92

Browse files
committed
Updates twig configuration example to match current offering
Updates the twig configuration example to add the following, which are also available: - autoescape - optimizations - runtime_loaders - timezone
1 parent 96ad22e commit 42cfc92

File tree

1 file changed

+6
-0
lines changed
  • docs/book/v3/features/template

1 file changed

+6
-0
lines changed

docs/book/v3/features/template/twig.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ return [
114114
],
115115
],
116116
'twig' => [
117+
'autoescape' => 'html', // Auto-escaping strategy [html|js|css|url|false]
117118
'cache_dir' => 'path to cached templates',
118119
'assets_url' => 'base URL for assets',
119120
'assets_version' => 'base version for assets',
@@ -124,6 +125,11 @@ return [
124125
// Global variables passed to twig templates
125126
'ga_tracking' => 'UA-XXXXX-X'
126127
],
128+
'optimizations' => -1, // -1: Enable all (default), 0: disable optimizations
129+
'runtime_loaders' => [
130+
// runtime loader names or instances
131+
],
132+
'timezone' => 'default timezone identifier, e.g. America/New_York',
127133
],
128134
];
129135
```

0 commit comments

Comments
 (0)