mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-14 11:27:00 +00:00
Update doc to correspond to the following:
http://twig.sensiolabs.org/documentation http://twig.sensiolabs.org/doc/filters/escape.html
This commit is contained in:
+25
-4
@@ -96,10 +96,11 @@ The following options are available:
|
|||||||
|
|
||||||
* ``autoescape``: If set to ``true``, auto-escaping will be enabled by default
|
* ``autoescape``: If set to ``true``, auto-escaping will be enabled by default
|
||||||
for all templates (default to ``true``). As of Twig 1.8, you can set the
|
for all templates (default to ``true``). As of Twig 1.8, you can set the
|
||||||
escaping strategy to use (``html``, ``js``, ``css``, ``false`` to disable,
|
escaping strategy to use (``html``, ``js``, ``false`` to disable).
|
||||||
or a PHP callback that takes the template "filename" and must return the
|
As of Twig 1.9, you can set the escaping strategy to use (``css``, ``url``,
|
||||||
escaping strategy to use -- the callback cannot be a function name to avoid
|
``html_attr``, or a PHP callback that takes the template "filename" and must
|
||||||
collision with built-in escaping strategies).
|
return the escaping strategy to use -- the callback cannot be a function name
|
||||||
|
to avoid collision with built-in escaping strategies).
|
||||||
|
|
||||||
* ``optimizations``: A flag that indicates which optimizations to apply
|
* ``optimizations``: A flag that indicates which optimizations to apply
|
||||||
(default to ``-1`` -- all optimizations are enabled; set it to ``0`` to
|
(default to ``-1`` -- all optimizations are enabled; set it to ``0`` to
|
||||||
@@ -269,6 +270,13 @@ The ``core`` extension defines all the core features of Twig:
|
|||||||
* ``from``
|
* ``from``
|
||||||
* ``set``
|
* ``set``
|
||||||
* ``spaceless``
|
* ``spaceless``
|
||||||
|
* ``autoescape``
|
||||||
|
* ``do``
|
||||||
|
* ``embed``
|
||||||
|
* ``flush``
|
||||||
|
* ``raw``
|
||||||
|
* ``sandbox``
|
||||||
|
* ``use``
|
||||||
|
|
||||||
* Filters:
|
* Filters:
|
||||||
|
|
||||||
@@ -291,6 +299,14 @@ The ``core`` extension defines all the core features of Twig:
|
|||||||
* ``keys``
|
* ``keys``
|
||||||
* ``escape``
|
* ``escape``
|
||||||
* ``e``
|
* ``e``
|
||||||
|
* ``abs``
|
||||||
|
* ``convert_encoding``
|
||||||
|
* ``date_modify``
|
||||||
|
* ``nl2br``
|
||||||
|
* ``number_format``
|
||||||
|
* ``raw``
|
||||||
|
* ``slice``
|
||||||
|
* ``trim``
|
||||||
|
|
||||||
* Functions:
|
* Functions:
|
||||||
|
|
||||||
@@ -299,6 +315,10 @@ The ``core`` extension defines all the core features of Twig:
|
|||||||
* ``cycle``
|
* ``cycle``
|
||||||
* ``parent``
|
* ``parent``
|
||||||
* ``block``
|
* ``block``
|
||||||
|
* ``attribute``
|
||||||
|
* ``date``
|
||||||
|
* ``dump``
|
||||||
|
* ``random``
|
||||||
|
|
||||||
* Tests:
|
* Tests:
|
||||||
|
|
||||||
@@ -310,6 +330,7 @@ The ``core`` extension defines all the core features of Twig:
|
|||||||
* ``divisibleby``
|
* ``divisibleby``
|
||||||
* ``constant``
|
* ``constant``
|
||||||
* ``empty``
|
* ``empty``
|
||||||
|
* ``iterable``
|
||||||
|
|
||||||
Escaper Extension
|
Escaper Extension
|
||||||
~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~
|
||||||
|
|||||||
Reference in New Issue
Block a user