X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;f=doc%2FTemplateSyntax.txt;h=75a42b2b247f5360dc6d8b1d931503af163d9fa2;hb=ac6e81d9579ebeed0b01cb3a22ebecbf69527b93;hp=47b36e905c3d70eeb55b6afd4a732fb3c0e34924;hpb=7c0b360a01afbb30258b5124ae3fedaf016c8c7a;p=gigi.git diff --git a/doc/TemplateSyntax.txt b/doc/TemplateSyntax.txt index 47b36e90..75a42b2b 100644 --- a/doc/TemplateSyntax.txt +++ b/doc/TemplateSyntax.txt @@ -11,12 +11,14 @@ A template is constructed from a charstream. Everything that is not in " will output the variable "variablename" but not HTML-escaped - will insert the variable "variablename" into the translated text but not HTML-escaped -- will insert "some data" into the translated text literally (not HTML-escaped) +- 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.