mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-13 10:56:38 +00:00
fixed docs
This commit is contained in:
+1
-1
@@ -400,7 +400,7 @@ Most of the time though, a tag is not needed:
|
||||
|
||||
.. note::
|
||||
|
||||
The ``apply`` tag was introduced in Twig 1.40; use the ``filter`` tag with
|
||||
The ``apply`` tag was introduced in Twig 2.9; use the ``filter`` tag with
|
||||
previous versions.
|
||||
|
||||
* If your tag does not output anything, but only exists because of a side
|
||||
|
||||
@@ -33,7 +33,7 @@ on large amounts of HTML:
|
||||
|
||||
.. note::
|
||||
|
||||
The ``apply`` tag was introduced in Twig 1.40; use the ``filter`` tag with
|
||||
The ``apply`` tag was introduced in Twig 2.9; use the ``filter`` tag with
|
||||
previous versions.
|
||||
|
||||
This tag is not meant to "optimize" the size of the generated HTML content but
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
``apply``
|
||||
=========
|
||||
|
||||
.. versionadded:: 1.40
|
||||
The ``apply`` tag was added in Twig 1.40.
|
||||
.. versionadded:: 2.9
|
||||
The ``apply`` tag was added in Twig 2.9.
|
||||
|
||||
The ``apply`` tag allows you to apply Twig filters on a block of template data:
|
||||
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
|
||||
.. note::
|
||||
|
||||
As of Twig 1.40, you should use the ``apply`` tag instead which does the
|
||||
As of Twig 2.9, you should use the ``apply`` tag instead which does the
|
||||
same thing except that the wrapped template data is not scoped.
|
||||
|
||||
Filter sections allow you to apply regular Twig filters on a block of template
|
||||
|
||||
+2
-2
@@ -181,7 +181,7 @@ filters.
|
||||
|
||||
.. note::
|
||||
|
||||
The ``apply`` tag was introduced in Twig 1.40; use the ``filter`` tag with
|
||||
The ``apply`` tag was introduced in Twig 2.9; use the ``filter`` tag with
|
||||
previous versions.
|
||||
|
||||
Functions
|
||||
@@ -891,7 +891,7 @@ the modifiers on one side of a tag or on both sides:
|
||||
|
||||
.. note::
|
||||
|
||||
The ``apply`` tag was introduced in Twig 1.40; use the ``filter`` tag with
|
||||
The ``apply`` tag was introduced in Twig 2.9; use the ``filter`` tag with
|
||||
previous versions.
|
||||
|
||||
Extensions
|
||||
|
||||
Reference in New Issue
Block a user