mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-15 20:06:31 +00:00
fixed versions in docs
This commit is contained in:
+2
-2
@@ -1,8 +1,8 @@
|
||||
``macro``
|
||||
=========
|
||||
|
||||
.. versionadded:: 1.12
|
||||
Support for default argument values was added in Twig 1.12.
|
||||
.. versionadded:: 1.14
|
||||
Support for default argument values was added in Twig 1.14.
|
||||
|
||||
Macros are comparable with functions in regular programming languages. They
|
||||
are useful to put often used HTML idioms into reusable elements to not repeat
|
||||
|
||||
+5
-5
@@ -199,8 +199,8 @@ Named Arguments
|
||||
.. versionadded:: 1.12
|
||||
Support for named arguments was added in Twig 1.12.
|
||||
|
||||
.. versionadded:: 1.13.2
|
||||
Support for named arguments for macros was added in Twig 1.13.2.
|
||||
.. versionadded:: 1.14
|
||||
Support for named arguments for macros was added in Twig 1.14.
|
||||
|
||||
Arguments for filters, functions and macros can also be passed as *named arguments*:
|
||||
|
||||
@@ -503,9 +503,9 @@ Macros
|
||||
.. versionadded:: 1.12
|
||||
Support for default argument values was added in Twig 1.12.
|
||||
|
||||
.. versionadded:: 1.13.2
|
||||
Support for macro call with named arguments was added in Twig 1.13.2.
|
||||
Support for directly call macros defined in the same template was added in Twig 1.13.2.
|
||||
.. versionadded:: 1.14
|
||||
Support for macro call with named arguments was added in Twig 1.14.
|
||||
Support for directly call macros defined in the same template was added in Twig 1.14.
|
||||
|
||||
Macros are comparable with functions in regular programming languages. They
|
||||
are useful to reuse often used HTML fragments to not repeat yourself.
|
||||
|
||||
Reference in New Issue
Block a user