From 91b965181f907b169aeeff63a6c15f9b8df9d9a9 Mon Sep 17 00:00:00 2001
From: Kevin Chabowski $foo
is not empty, then Bar
will be executed, otherwise Baz
.
Because if-clauses are used often, there is an short syntax:
+Because if-clauses are used often, there is a short syntax:
?{condition|then|else}
This is equivalent to:
<ste:if>condition<ste:then>then</ste:then><ste:else>else</ste:else></ste:if>
array
key
Create an infinitive loop. You can get out of the loop using the ste:break tag. Can be used to emulate other loop constructs like while loops.
+Creates an infinitive loop. You can get out of the loop using the ste:break tag. Can be used to emulate other loop constructs like while loops.
Example:
@@ -416,7 +416,7 @@
<ste:infloop>
<ste:if>
<ste:foo />
<ste:then><ste:break /></ste:then>
</ste:if>
...
<ste:infloop>
ste:block provides an easy way for writing master templates. Every block has a name. When a block is defined twice, the second will overwrite the first one.
+ste:block provides an easy way for writing master templates. Every block has a name. When a block is defined twice, the second one will overwrite the first one.
The name can be set with the name
parameter.
Example:
@@ -441,7 +441,7 @@
ste:get will return the content of a variable. The parameter var
takes the name of the variable to get. Usefult, if you want to get a variable which name is stored in a variable.
ste:get will return the content of a variable. The parameter var
takes the name of the variable to get. Useful, if you want to get a variable which name is stored in a variable.
Example:
--
cgit v1.2.3-70-g09d2
<ste:get var="$foo" />