summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/test_closure/test.tpl10
-rw-r--r--tests/test_closure/want3
2 files changed, 8 insertions, 5 deletions
diff --git a/tests/test_closure/test.tpl b/tests/test_closure/test.tpl
index c13bd5a..c84ed0a 100644
--- a/tests/test_closure/test.tpl
+++ b/tests/test_closure/test.tpl
@@ -1,8 +1,10 @@
-<ste:mktag name="initfoo">
+<ste:mktag name="inittag" mandatory="innername">
<ste:set var="x"><ste:tagcontent /></ste:set>
- <ste:mktag name="foo">
+ <ste:mktag name="$_tag_parameters[innername]">
<ste:calc>$x + <ste:tagcontent /></ste:calc>
</ste:mktag>
</ste:mktag>
-<ste:initfoo>10</ste:initfoo>
-<ste:foo>20</ste:foo> \ No newline at end of file
+<ste:inittag innername="foo">10</ste:inittag>
+<ste:inittag innername="bar">20</ste:inittag>
+<ste:foo>30</ste:foo>
+<ste:bar>40</ste:bar> \ No newline at end of file
diff --git a/tests/test_closure/want b/tests/test_closure/want
index 64bb6b7..98d2f20 100644
--- a/tests/test_closure/want
+++ b/tests/test_closure/want
@@ -1 +1,2 @@
-30
+40
+60