Re: [htmltmpl] formatting output of recursive functions
Brought to you by:
samtregar
From: Karen J. C. <si...@ph...> - 2003-09-25 17:43:44
|
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 used to make a dummy TMPL_LOOP within that one, which is used by the template however it needs to be... at the moment, I think I'm just using nonbreaking spaces to indent it. You could use clear graphics to do the same thing. If you were willing to accept less of a separation between template and code, you could pass a simple variable instead (level*N), and use it for the width of a clear graphic, or an empty table cell. Or if you're using expressions, you could pass the level value as is, and multiply it by the desired amount within the template. -- Karen J. Cravens si...@ph... |