Lines Matching refs:be

5 be most useful as reference to those implementing the template interface to
74 If a template defines blocks, they can be rendered individually via the
115 the ``auto_reload`` option, it will be determined automatically based on the
127 If set to ``true``, HTML auto-escaping will be enabled by
135 return the escaping strategy to use -- the callback cannot be a function name
207 Namespaced templates can be accessed via the special
215 the directory might be different from the one used on production servers)::
237 This loader is very useful for unit testing. It can also be used for small
258 'base.html' => 'Will never be loaded',
268 ``base.html`` template will be loaded from ``$loader1``.
291 …* @deprecated since 1.27 (to be removed in 2.0), implement \Twig\Loader\SourceContextLoaderInterfa…
349 The core, escaper, and optimizer extensions do not need to be added to the
399 {{ var|raw }} {# var won't be escaped #}
400 {{ var|escape }} {# var won't be double-escaped #}
414 {{ "Twig<br />" }} {# won't be escaped #}
417 {{ text }} {# will be escaped #}
424 {{ foo ? "Twig<br />" : "<br />Twig" }} {# won't be escaped #}
427 {{ foo ? text : "<br />Twig" }} {# will be escaped #}
430 {{ foo ? text|raw : "<br />Twig" }} {# won't be escaped #}
433 {{ foo ? text|escape : "<br />Twig" }} {# the result of the expression won't be escaped #}
441 * The `raw` filter should only be used at the end of the filter chain:
445 {{ var|raw|upper }} {# will be escaped #}
447 {{ var|upper|raw }} {# won't be escaped #}
457 {{ var|escape('html') }} {# will be escaped for HTML and JavaScript #}
458 {{ var }} {# will be escaped for JavaScript #}
459 {{ var|escape('js') }} {# won't be double-escaped #}
473 The ``sandbox`` extension can be used to evaluate untrusted code. Access to
491 the ``if`` tag, and the ``upper`` filter. Moreover, the templates will only be
494 won't be allowed and will generate a ``\Twig\Sandbox\SecurityError`` exception.
501 By default, the sandbox mode is disabled and should be enabled when including
522 only be used on your development machines as it adds some overhead::