Merge pull request #9385 from mooror/patch-1

Updated the "Template Syntax" Documentation
This commit is contained in:
Dylan Wagstaff 2020-02-04 11:03:22 +13:00 committed by GitHub
commit 3a99a57d41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -94,6 +94,10 @@ If a variable returns a string, that string will be inserted into the template.
the system will attempt to render the object through its `forTemplate()` method. If the `forTemplate()` method has not the system will attempt to render the object through its `forTemplate()` method. If the `forTemplate()` method has not
been defined, the system will return an error. been defined, the system will return an error.
[notice]
If you wish to pass parameters to getter functions, you must use the full method name, e.g. $getThing('param'). Also, parameters must be literals, and cannot be other template variables (`$getThing($variable)` will not work)
[/notice]
[note] [note]
For more detail around how variables are inserted and formatted into a template see For more detail around how variables are inserted and formatted into a template see
[Formating, Modifying and Casting Variables](casting) [Formating, Modifying and Casting Variables](casting)