From enaeher at onshored.com Mon Jul 17 20:15:07 2006
From: enaeher at onshored.com (Eli Naeher)
Date: Mon, 17 Jul 2006 15:15:07 -0500
Subject: [html-template-devel] Recursive templates?
Message-ID: <20060717151507.3c18be96.enaeher@onshored.com>
Hello,
I've begun using (and enjoying) the html-template package but have run up against the fact that I can't create recursive templates, apparently because TMPL_INCLUDE is evaluated before any conditionals are. Are there any patches around to implement this, or is there a workaround? I'm trying to build a tree out of nested lists, and I'd like to be able to make a template 'list-item,' looking something like:
Thanks,
--Eli
From edi at agharta.de Tue Jul 18 14:17:23 2006
From: edi at agharta.de (Edi Weitz)
Date: Tue, 18 Jul 2006 16:17:23 +0200
Subject: [html-template-devel] Recursive templates?
In-Reply-To: <20060717151507.3c18be96.enaeher@onshored.com> (Eli Naeher's
message of "Mon, 17 Jul 2006 15:15:07 -0500")
References: <20060717151507.3c18be96.enaeher@onshored.com>
Message-ID:
Hi!
On Mon, 17 Jul 2006 15:15:07 -0500, Eli Naeher wrote:
> I've begun using (and enjoying) the html-template package but have
> run up against the fact that I can't create recursive templates,
> apparently because TMPL_INCLUDE is evaluated before any conditionals
> are. Are there any patches around to implement this, or is there a
> workaround? I'm trying to build a tree out of nested lists, and I'd
> like to be able to make a template 'list-item,' looking something
> like:
>
>
>
>
>
>
>
There's currently no way to do what you want because the library
explicitely checks for recursive INCLUDE tags. Changing that would be
non-trivial and I don't have the time to do it.
I'd be happy to review patches, though, provided they are clean, well
tested, documented, and follow the coding standards in the rest of the
code.
Cheers,
Edi.