Skip to content
This repository
Browse code

Correction of template documentation: Removed mentions of deprecated …

…control statement.
  • Loading branch information...
commit 31c9e98c7dba5675fbf21038b738ff937d4d96f7 1 parent 37ae36c
adiwidjaja authored March 14, 2012

Showing 1 changed file with 7 additions and 7 deletions. Show diff stats Hide diff stats

  1. 14  docs/en/reference/templates.md
14  docs/en/reference/templates.md
Source Rendered
@@ -217,25 +217,25 @@ $Modulus and $MultipleOf can help to build column layouts.
217 217
 	$Modulus(value, offset) // returns an int
218 218
 	$MultipleOf(factor, offset) // returns a boolean.
219 219
 
220  
-The following example demonstrates how you can use $Modulus(4) to generate custom column names based on your control statement. Note that this works for any control statement (not just children)
  220
+The following example demonstrates how you can use $Modulus(4) to generate custom column names based on your loop statement. Note that this works for any control statement (not just children)
221 221
 
222 222
 	:::ss
223  
-	<% control Children %>
  223
+	<% loop Children %>
224 224
 	<div class="column-{$Modulus(4)}">
225 225
 		...
226 226
 	</div>
227  
-	<% end_control %>
  227
+	<% end_loop %>
228 228
 
229 229
 Will return you column-3, column-2, column-1, column-0, column-3 etc. You can use these as styling hooks to float, position as you need.
230 230
 
231 231
 You can also use $MultipleOf(value, offset) to help build columned layouts. In this case we want to add a <br> after every 3th item
232 232
 
233 233
 	:::ss
234  
-	<% control Children %>
  234
+	<% loop Children %>
235 235
 		<% if MultipleOf(3) %>
236 236
 			<br>
237 237
 		<% end_if %>
238  
-	<% end_control %>
  238
+	<% end_loop %>
239 239
 
240 240
 ## Scope
241 241
 
@@ -352,9 +352,9 @@ Your function could return a single value as above or it could be a subclass of
352 352
 And now you could call these values by using
353 353
 
354 354
 	:::ss
355  
-	<% control MyCustomValues %>
  355
+	<% with MyCustomValues %>
356 356
 	$Hi , $Name
357  
-	<% end_control %>
  357
+	<% end_with %>
358 358
 	
359 359
 	// output "Kia Ora , John Smith" 
360 360
 

0 notes on commit 31c9e98

Please sign in to comment.
Something went wrong with that request. Please try again.