Commits

Stephen McKamey  committed a5eb06e

- updating notes

  • Participants
  • Parent commits c4f1a3e

Comments (0)

Files changed (2)

 
 === [[http://duelengine.org/license.txt|License]] ===
 
-DUEL is licensed under the [[http://duelengine.org/license.txt|MIT license]].
+DUEL is licensed under the [[http://duelengine.org/license.txt|MIT license]]. Copyright (c)2006-2010 Stephen M. McKamey.
 
 === Loop construct {{{<for each="...">...</for>}}} ===
 
-Wrapped around content to be repeated once per item. The {{{each}}} attribute contains an {{{object}}} expression defining the list of items to iterate over.
+Wrapped around content to be repeated once per item. The {{{each}}} attribute contains an {{{Array}}} expression defining the list of items to iterate over. The {{{model}}} value will contain the current item, and the {{{index}}} and {{{count}}} values (see below) will be updated with the current item index and total count respectively.
 
-=== Conditional block {{{<if test="...">...</if>}}} ===
+If the {{{each}}} attribute contains an {{{object}}} expression, then the loop will iterate over the properties of that object. In this case, {{{model}}} will contain the {{{object}}} itself, {{{index}}} will contain the property name and {{{count}}} will not be used.
 
-Wrapped around conditional content. The {{{test}}} attribute contains a {{{boolean}}} expression indicating if contents should be included in result.
+=== Conditional blocks {{{<if test="...">...<else if="...">...<else>...</if>}}} ===
 
-=== Alternate conditionals {{{<else if="...">}}} or {{{<else>}}} ===
+Wrapped around conditional content. The {{{test}}} attribute contains a {{{boolean}}} expression indicating if contents should be included in result. Any truthy value will cause the contents of that section to be emitted.
 
-Sits inside an {{{<if></if>}}} block without a closing tag (alternatively {{{<else test="...">}}} for symmetry with {{{<if test="...">}}}). The {{{if}}} attributes (alternatively {{{test}}} may be used) contains a {{{boolean}}} expression indicating if contents should be included in result.
+{{{<else>}}} tags sit inside an {{{<if></if>}}} block without a closing tag. The {{{if}}} attribute (alternatively {{{<else test="...">}}} may be used for symmetry with {{{<if test="...">}}}) contains a {{{boolean}}} expression indicating if contents should be included in result.
 
 === Single element conditional {{{<div if="...">...</div>}}} ===