summaryrefslogtreecommitdiff
path: root/tests/test_recursive/test.tpl
blob: bea39342b57bb0db56255aa313dbb3ed875ae6a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
<ste:mktag name="fac" mandatory="n">
	<ste:if>
		~{$_tag_parameters[n]|eq|0}
		<ste:then>1</ste:then>
		<ste:else>
			<ste:set var="nextn"><ste:calc>$_tag_parameters[n] - 1</ste:calc></ste:set>
			<ste:calc><ste:fac n="$nextn" /> * $_tag_parameters[n]</ste:calc>
		</ste:else>
	</ste:if>
</ste:mktag>
<ste:fac n="10" />