On Wed, 2 Jul 2003, Kapoor, Nishikant X wrote: KNX>I am developing a web-based discussion forum using Perl, H::T and KNX>mySQL and would appreciate your suggestions and/or pointers as to: KNX> KNX>- How I can use H::T to implement tree structures. For ex.
I've fiddled around with the same idea (in archiving mailing-list messages), but haven't come up with a final solution yet. Some of the things I've looked at: * Dummy TMPL_LOOPs to determine the indent level * "Manually" nesting H::T files to force recursion * Building nested HTML unsorted lists in the code and letting H::T format it using CSS The third method is the easiest (though it's back to hard-coding HTML), so that's what I'm doing right now. It could graduate to the second method someday, but it seems awkward to use an entire template just to format each line. The first method seems like it would work, but I haven't thought about it hard enough to make it work. I'll be interested in hearing what (else) you come up with. -- Karen J. Cravens [EMAIL PROTECTED] ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 _______________________________________________ Html-template-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/html-template-users