Branch
Hash :
5a524f7e
Author :
Date :
2018-04-11T08:44:44
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
<h2>Comments</h2>
<pre><code>## Single line comment
#* Multi-line
comment *#</code></pre>
<h2>Unparsed sections</h2>
<pre><code>## Section below is not parsed
#[[
## This is not a comment
]]#</code></pre>
<h2>Variables</h2>
<pre><code>$mud
$customer.Name
$flogger.getPromo( $mud )
$!{mudSlinger_9}
$foo[0]
$foo[$i]
$foo["bar"]
$foo.bar[1].junk
$foo.callMethod()[1]</code></pre>
<h2>Directives</h2>
<pre><code>#set($foo.bar[1] = 3)
#if($a==1)true enough#{else}no way!#end
#macro( d )
<tr><td>$!bodyContent</td></tr>
#end
#@d()Hello!#end</code></pre>
<h2>Integration with HTML</h2>
<pre><code><html>
<body>
Hello $customer.Name!
<table>
#foreach( $mud in $mudsOnSpecial )
#if ( $customer.hasPurchased($mud) )
<tr>
<td>
$flogger.getPromo( $mud )
</td>
</tr>
#end
#end
</table>
</body>
</html></code></pre>