On Tue, 28 Oct 2003 suppressed wrote:
> I have looked at the H::T list archives, and cannot find an answer other
> than "I think it can be done with callbacks". As an aside - what is the
> new host of the H::T list? I only get a response from mailer-daemon at
> vanguard.
The new list is on SourceForge. You must be using an old version of
HTML::Template! Upgrade and see the docs for the new list details.
> I get a recursion too deep message. It looks like the template is
> generating the include before replacing any variables.
Right. HTML::Template processes include calls during the parse, so
recursive includes won't work.
> Does anyone have any working code they are willing to share which
> accomplishes something like this? Just asking before I go off and
> implement it on my own.
I recommend you flatten your structure before passing it to
HTML::Template. Instead of building loops within loops, pass a
'depth' parameter and use that to build your HTML. There are, of
course, other ways to do it, but I've found this works well and is
easy to maintain.
-sam
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/suppressed/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.