``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
.. 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*:
.. 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.