From 42cfc923c7b0014131f716c64f858bafa6f2b17c Mon Sep 17 00:00:00 2001 From: Matthew Weier O'Phinney Date: Mon, 9 Apr 2018 15:53:23 -0500 Subject: [PATCH] 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 --- docs/book/v3/features/template/twig.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/book/v3/features/template/twig.md b/docs/book/v3/features/template/twig.md index 7befeae7..2a7066f8 100644 --- a/docs/book/v3/features/template/twig.md +++ b/docs/book/v3/features/template/twig.md @@ -114,6 +114,7 @@ return [ ], ], 'twig' => [ + 'autoescape' => 'html', // Auto-escaping strategy [html|js|css|url|false] 'cache_dir' => 'path to cached templates', 'assets_url' => 'base URL for assets', 'assets_version' => 'base version for assets', @@ -124,6 +125,11 @@ return [ // Global variables passed to twig templates 'ga_tracking' => 'UA-XXXXX-X' ], + 'optimizations' => -1, // -1: Enable all (default), 0: disable optimizations + 'runtime_loaders' => [ + // runtime loader names or instances + ], + 'timezone' => 'default timezone identifier, e.g. America/New_York', ], ]; ```