From 63eb6c2a242568990ae714e3c0e2886d6dbfa5a2 Mon Sep 17 00:00:00 2001 From: Steve Dixon Date: Thu, 21 May 2015 12:56:26 +1000 Subject: [PATCH] Template Syntax doco grammar cleanup Some simple edits to improve some grammatical mistakes and consistency. --- .../01_Templates/01_Syntax.md | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) 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 ad8499f5f..46f7a3640 100644 --- a/docs/en/02_Developer_Guides/01_Templates/01_Syntax.md +++ b/docs/en/02_Developer_Guides/01_Templates/01_Syntax.md @@ -70,7 +70,7 @@ These variables will call a method / field on the object and insert the returned * `$Foo.Bar` will call `$obj->Foo()->Bar()` If a variable returns a string, that string will be inserted into the template. If the variable returns an object, then -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.
@@ -96,7 +96,7 @@ Variables can come from your database fields, or custom methods you define on yo Method names that begin with `get` will automatically be resolved when their prefix is excluded. For example, the above method call `$UsersIpAddress` would also invoke a method named `getUsersIpAddress()`.
-The variable's that can be used in a template vary based on the object currently in [scope](#scope). Scope defines what +The variables that can be used in a template vary based on the object currently in [scope](#scope). Scope defines what object the methods get called on. For the standard `Page.ss` template the scope is the current [api:Page_Controller] class. This object gives you access to all the database fields on [api:Page_Controller], its corresponding [api:Page] record and any subclasses of those two. @@ -243,7 +243,7 @@ object that is being looped over. `<% loop %>` statements iterate over a [api:DataList] instance. As the template has access to the list object, templates can call [api:DataList] methods. -Sort the list by a given field. +Sorting the list by a given field. :::ss -Filtering the loop +Filtering the loop. :::ss -Methods can also be chained +Methods can also be chained. :::ss