mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-21 07:37:43 +00:00
fixed markup in doc
This commit is contained in:
+2
-2
@@ -648,10 +648,10 @@ Here is a small example of a macro that renders a form element:
|
|||||||
|
|
||||||
Macros differs from native PHP functions in a few ways:
|
Macros differs from native PHP functions in a few ways:
|
||||||
|
|
||||||
* Default argument values are defined by using the ``default`` filter in the
|
* Default argument values are defined by using the ``default`` filter in the
|
||||||
macro body;
|
macro body;
|
||||||
|
|
||||||
* Arguments of a macro are always optional.
|
* Arguments of a macro are always optional.
|
||||||
|
|
||||||
But as PHP functions, macros don't have access to the current template
|
But as PHP functions, macros don't have access to the current template
|
||||||
variables.
|
variables.
|
||||||
|
|||||||
Reference in New Issue
Block a user