X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;f=doc%2FTemplateSyntax.txt;h=75a42b2b247f5360dc6d8b1d931503af163d9fa2;hb=98aa1434dc5e06971dcd35f6b9bd335216edce43;hp=ab4cc37d37060a2e0b229629bf70df791df0a1c8;hpb=ca82909d6bb910769eb756058d51d55e6d257914;p=gigi.git diff --git a/doc/TemplateSyntax.txt b/doc/TemplateSyntax.txt index ab4cc37d..75a42b2b 100644 --- a/doc/TemplateSyntax.txt +++ b/doc/TemplateSyntax.txt @@ -7,12 +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. - -- - Output/execute the text until "" only if $variable is boolean and true. + 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 +- 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 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.