]> WPIA git - gigi.git/commitdiff
Document disabeling HTMLEscaping in template syntax.
authorFelix Dörre <felix@dogcraft.de>
Sat, 2 Aug 2014 14:53:05 +0000 (16:53 +0200)
committerFelix Dörre <felix@dogcraft.de>
Sat, 2 Aug 2014 14:53:05 +0000 (16:53 +0200)
doc/TemplateSyntax.txt

index 40dff59cf7ac770ec26caaeef28b6fcbe0e81735..9309f5e21808521681eeed194a838296af6449ac 100644 (file)
@@ -8,6 +8,9 @@ A template is constructed from a charstream. Everything that is not in "<?" to "
    
 - <?=s,$var1,$var2,$var3,...,$varn,This %s is, %s free.?>
   Translate the last string. Output $var1,...,$varn replaced into the %s positions in the translated string.
+
+- <?=$!variablename?> will output the variable "variablename" but not HTML-escaped
+- <?=s,$!variablename,My %s text?> will insert the variable "variablename" into the translated text but not HTML-escaped
   
 - <? if($variable) { ?>
   Output/execute the text until "<? } ?>" only if $variable not null or Boolean.FALSE.