mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-16 12:26:30 +00:00
merged branch jezhalford/patch-1 (PR #1067)
This PR was merged into the master branch.
Discussion
----------
Made macro documentation clearer
Previous wording implied (to me at least) that macros *are* PHP functions.
Commits
-------
c155932 Made macro doc clearer
This commit is contained in:
+1
-1
@@ -20,7 +20,7 @@ Macros differs from native PHP functions in a few ways:
|
||||
|
||||
* Arguments of a macro are always optional.
|
||||
|
||||
But as PHP functions, macros don't have access to the current template
|
||||
But as with PHP functions, macros don't have access to the current template
|
||||
variables.
|
||||
|
||||
.. tip::
|
||||
|
||||
Reference in New Issue
Block a user