Mercurial > hg > tema
view res/kryshen/tema/demo/demo.template @ 30:54539dff18ca
Allow access to the calling (outer) context. Start parse_args implementation.
author | Mikhail Kryshen <mikhail@kryshen.net> |
---|---|
date | Fri, 15 May 2009 03:07:16 +0400 |
parents | 6c41a0b43e58 |
children |
line wrap: on
line source
[%!\ Tema demo template %]\\ <%tema:%> Escaping special character sequences: [%\<%test:%>%] Macro definition: <%define#test arg1:<%next_arg:%>, arg2:<%next_arg:%>, data:<%data:%>.%> Invoke defined macro: <%test:1 2 3 4 5%> Define macro implemented as a Java class: <%load\hello kryshen.tema.demo.Hello%> Invoke defined macro: <%hello\Tema%> Conditional output: <%optional:<%true:%>True%>\ <%optional:<%false:%>False%> Cycle: <%silent define#cycle_test Arguments list: <%while#"<%next_arg:%>" %>\ %>\ <%cycle_test:1 2 3 <%:4 5%>%> Escaping special characters in XML: <%xml_escape\x < a & b%>