From 7c32a848aa7dfc3da61d5e7025e68dec28a72fb7 Mon Sep 17 00:00:00 2001 From: Benjamin Blake Date: Mon, 27 Jan 2020 15:18:40 -0700 Subject: [PATCH] Updated the "Template Syntax" Documentation Added a notice to the "Variables" section of the "Template Syntax" documentation to warn developers about common template variable gotchas --- docs/en/02_Developer_Guides/01_Templates/01_Syntax.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/en/02_Developer_Guides/01_Templates/01_Syntax.md b/docs/en/02_Developer_Guides/01_Templates/01_Syntax.md index cf072aed9..710d1cbb7 100644 --- a/docs/en/02_Developer_Guides/01_Templates/01_Syntax.md +++ b/docs/en/02_Developer_Guides/01_Templates/01_Syntax.md @@ -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 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] For more detail around how variables are inserted and formatted into a template see [Formating, Modifying and Casting Variables](casting)