diff options
author | Gianni Ceccarelli <dakkar@dechirico.(none)> | 2009-04-25 09:39:18 +0200 |
---|---|---|
committer | Gianni Ceccarelli <dakkar@dechirico.(none)> | 2009-04-25 09:39:18 +0200 |
commit | 7412806df23c7cc40c8da083266eaaf9d3ac8266 (patch) | |
tree | 493e26214e9546277f57f94e92ccf02a8c29e337 /t | |
parent | passes critic (diff) | |
download | Tree-Template-Declare-7412806df23c7cc40c8da083266eaaf9d3ac8266.tar.gz Tree-Template-Declare-7412806df23c7cc40c8da083266eaaf9d3ac8266.tar.bz2 Tree-Template-Declare-7412806df23c7cc40c8da083266eaaf9d3ac8266.zip |
added "attach_nodes" function (undocumented for now)
Diffstat (limited to 't')
-rw-r--r-- | t/06-code.t | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/t/06-code.t b/t/06-code.t index a24427d..959fce2 100644 --- a/t/06-code.t +++ b/t/06-code.t @@ -21,9 +21,11 @@ sub make_item { sub make_list { my (@items)=@_; + my @item_nodes=map {make_item(@$_)} @items; + return node { name 'list'; - make_item(@$_) for @items; + attach_nodes @item_nodes; }; } |