mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-13 19:06:40 +00:00
Update macro.rst
Small grammar fix: subject-verb agreement "Macros differ" vs "Macros differs"
This commit is contained in:
committed by
Fabien Potencier
parent
25cf1527a7
commit
080054501f
+1
-1
@@ -13,7 +13,7 @@ Here is a small example of a macro that renders a form element:
|
||||
<input type="{{ type|default('text') }}" name="{{ name }}" value="{{ value|e }}" size="{{ size|default(20) }}" />
|
||||
{% endmacro %}
|
||||
|
||||
Macros differs from native PHP functions in a few ways:
|
||||
Macros differ from native PHP functions in a few ways:
|
||||
|
||||
* Default argument values are defined by using the ``default`` filter in the
|
||||
macro body;
|
||||
|
||||
Reference in New Issue
Block a user