X-Git-Url: https://code.wpia.club/?p=gigi.git;a=blobdiff_plain;f=doc%2FTemplateSyntax.txt;fp=doc%2FTemplateSyntax.txt;h=3b4a07ca1c0f1962b248be2e7fee91edde56bb5d;hp=0000000000000000000000000000000000000000;hb=9420682debe732ed08b15c6b4de27a3b078c85ba;hpb=ffab4ac1fae1a58919c7dde59d90c75df096512c diff --git a/doc/TemplateSyntax.txt b/doc/TemplateSyntax.txt new file mode 100644 index 00000000..3b4a07ca --- /dev/null +++ b/doc/TemplateSyntax.txt @@ -0,0 +1,14 @@ +A template is constructed from a charstream. Everything that is not in "" will be outputted directly. Text in these markers will be interpreted is template scripting syntax. The following strings are valid: + +- will output "variablename". + if "variablename" is an Outputable output this thing recursively. + else turn it into a String (Object.toString()) and output it. + +- 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. +