X-Git-Url: https://code.wpia.club/?p=gigi.git;a=blobdiff_plain;f=doc%2FTemplateSyntax.txt;h=9309f5e21808521681eeed194a838296af6449ac;hp=3b4a07ca1c0f1962b248be2e7fee91edde56bb5d;hb=446d3aa82c177eb844f6f19c8f85d4a6e631efe7;hpb=9420682debe732ed08b15c6b4de27a3b078c85ba diff --git a/doc/TemplateSyntax.txt b/doc/TemplateSyntax.txt index 3b4a07ca..9309f5e2 100644 --- a/doc/TemplateSyntax.txt +++ b/doc/TemplateSyntax.txt @@ -7,8 +7,18 @@ A template is constructed from a charstream. Everything that is not in " will translate "This is free Text." into the users language, (escaped) and output it. - - Translate the last string. Output $var1,...,$varn sprintf-ed into the translated string. + Translate the last string. Output $var1,...,$varn replaced into the %s positions in the translated string. + +- will output the variable "variablename" but not HTML-escaped +- will insert the variable "variablename" into the translated text but not HTML-escaped - - Output/execute the text until "" only if $variable is boolean and true. + Output/execute the text until "" only if $variable not null or Boolean.FALSE. + +- + 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. + + \ No newline at end of file