Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: list of list and HTML::Template

by neniro (Priest)
on Sep 20, 2005 at 15:41 UTC ( #493491=note: print w/ replies, xml ) Need Help??


in reply to list of list and HTML::Template

Of course you can try to build a nested template but you need to know a maximal depth:

<TMPL_IF NAME="children"> <TMPL_LOOP NAME="children"> ... <TMPL_IF NAME="children"> <TMPL_LOOP NAME="children"> (...) </TMPL_LOOP> </TMPL_IF> ... </TMPL_LOOP> </TMPL_IF>
I don't think that this is a good idea (or practise). I personally would try to use <TMPL_VAR NAME="tree_expanded"> and use an own recursive defined function to stringify the tree. :(


Comment on Re: list of list and HTML::Template
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://493491]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (14)
As of 2015-07-31 11:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (276 votes), past polls