Re: [htmltmpl] formatting output of recursive functions

2003-09-25 Thread Brett Sanger
> html::template. I get the guestbook-data via DBi from a MySQL-Server. > I process this data within a recursive function, which calls itself > until no record has any more children. By now I append all html-data with First, the part that isn't your question, but I feel opinionated :) Recursion

Re: [htmltmpl] formatting output of recursive functions

2003-09-25 Thread Ron Savage
On Thu, 25 Sep 2003 16:38:49 +0200, Ralf Ullrich wrote: Hi Ralf See below. >=> $html) and this works fine. but this is bad if you want to style >certain rows in a different way from other rows. But i don't know >how to >handle this with TMPL_LOOP, since I never can know, how many >children >exis

Re: [htmltmpl] formatting output of recursive functions

2003-09-25 Thread Karen J. Cravens
On Thu, 25 Sep 2003, Ralf Ullrich wrote: RU>has anyone on this list done something like this and could point me in RU>the right direction? H::T doesn't recurse very well, but it does loops nicely. What I end up doing is putting all messages in a single TMPL_LOOP. The indentation level is then u

[htmltmpl] formatting output of recursive functions

2003-09-25 Thread Ralf Ullrich
hello, this is my first mail to the list since i began using html::template one year ago. i have the following problem: i have an threaded discussion forum for which I want to use html::template. I get the guestbook-data via DBi from a MySQL-Server. I process this data within a recursive functio