larsen has asked for the wisdom of the Perl Monks concerning the following question:
Now, I'd like each category page to use the same wrapper. My first attempt has been the following:[% categories = [ ... ] %] [% FOREACH c IN categories %] [% FILTER redirect( $c ) %] bla bla bla [% END %] [% END %]
but it does not work, leading to ! file error - recursion into 'wrapper.tt2' in the build phase. Allowing recursion via ttree config leads just to deeper errors.... [% FILTER redirect( $c ) %] [% WRAPPER foo %] bla bla bla [% END %] [% END %] ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Template Toolkit, problem with recursive wrapper templates
by Your Mother (Archbishop) on Jul 11, 2005 at 23:32 UTC | |
by larsen (Parson) on Jul 12, 2005 at 07:29 UTC | |
|
Re: Template Toolkit, problem with recursive wrapper templates
by mugwumpjism (Hermit) on Jul 12, 2005 at 05:48 UTC | |
|
Re: Template Toolkit, problem with recursive wrapper templates
by larsen (Parson) on Jul 12, 2005 at 12:46 UTC | |
|
Re: Template Toolkit, problem with recursive wrapper templates
by waswas-fng (Curate) on Jul 11, 2005 at 22:44 UTC | |
by larsen (Parson) on Jul 12, 2005 at 07:13 UTC | |
|
Re: Template Toolkit, problem with recursive wrapper templates
by waswas-fng (Curate) on Jul 11, 2005 at 22:44 UTC |