X-Git-Url: https://code.wpia.club/?p=gigi.git;a=blobdiff_plain;f=doc%2FTemplateSyntax.txt;h=b6979469003b55510af92317d1e1d8238bda1c76;hp=ad8e09ae170f0e9f82326af1f60b06199f37f890;hb=HEAD;hpb=0d1d3c357c8274c519270abc61b668bff637c40a diff --git a/doc/TemplateSyntax.txt b/doc/TemplateSyntax.txt index ad8e09ae..b6979469 100644 --- a/doc/TemplateSyntax.txt +++ b/doc/TemplateSyntax.txt @@ -13,6 +13,8 @@ Syntax: Text may not contain "?>". If the text contains "$" or "!'" it is interpreted as "advanced replacement". - ${variablename} is interpreted as "output this variable at this point" + - $!{variablename} is interpreted as "output this variable unescaped at this point" + - !(/link) is interpreted as "output an opening -tag to '/link' at this point" (which must be closed, e.g. using !'', see below) - !'literal content' output "literal content" here and do not translate or escape. (literal content may not contain any of: {}'$ ) Then the whole text than also may not contain "{" and "}". @@ -26,4 +28,5 @@ Syntax: Special variables that $variable defines can be used in the inner text. - \ No newline at end of file +Adding a "\" before a newline will cause both the backslash and the newline get removed. This allows non-visible line-breaks in templates. +Note: Mail templates consist of a template for subject and a template for the body. Prolonging the subject-line with this feature is not possible.