mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-15 20:06:31 +00:00
minor #2065 Update macro.rst (dubaaron)
This PR was submitted for the master branch but it was merged into the 1.x branch instead (closes #2065).
Discussion
----------
Update macro.rst
Small grammar fix: subject-verb agreement "Macros differ" vs "Macros differs"
Commits
-------
0800545 Update macro.rst
This commit is contained in:
+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