X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;f=doc%2FTemplateSyntax.txt;h=75a42b2b247f5360dc6d8b1d931503af163d9fa2;hb=98aa1434dc5e06971dcd35f6b9bd335216edce43;hp=2ed1e546074493495a2012a4fced4118ea3d2cde;hpb=7e1a029d9df4c731a2087e58f774e6d8737aace3;p=gigi.git diff --git a/doc/TemplateSyntax.txt b/doc/TemplateSyntax.txt index 2ed1e546..75a42b2b 100644 --- a/doc/TemplateSyntax.txt +++ b/doc/TemplateSyntax.txt @@ -14,10 +14,11 @@ A template is constructed from a charstream. Everything that is not in " will insert "some data" into the translated text - will insert "some data" into the translated text literally (not HTML-escaped) -- - Output/execute the text until "" only if $variable not null or Boolean.FALSE. - -- +- ... + Output/execute the text until "" only if $variable is Boolean.TRUE (<=> !Boolean.FALSE) or not null. +- ... ... + +- ... If $variable is an "IterableDataset" Output/execute the text until "" repeated as $variable suggests. Special variables that $variable defines can be used in the inner text.