Andy Wardley wrote:
> [% FOREACH product IN products; # loop through each product
>page = "${product.id}.html"; # construct product page URL
>PROCESS product/page # generate product page...
>FILTER redirect(page); # ...saving output
On Tue, 16 Sep 2003, Andy Wardley wrote:
> [% FOREACH product IN products; # loop through each product
>page = "${product.id}.html"; # construct product page URL
>PROCESS product/page # generate product page...
>FILTER redirect(page);
Andy Wardley wrote:
Actually he's defining a variable named "headers". It's just that he's
using a BLOCK...END to define the scope of it.
Right.
Then you include "html/header" ( no _s_ ). Is this supposed to reference
the first block? Are these fragments in the same file? Different files?
I su
Alex Vandiver wrote:
> Use the redirect filter, inside a loop. The path you give to the
> redirect filter is relative to the output path.
[...]
> This _will_ leave you with an empty file from the template itself, but
> this is not usually a problem.
I often use my index page as the generator. Fo
Dennis Daupert wrote:
>[% headers = BLOCK %]
> ...etc...
>[% END %]
>
>[% INCLUDE html/header
> title = 'HDE Team Portal'
> bgcol = '#ff'
>%]
Clayton L. Scott wrote:
> First you declare a block named "headers" with an _s_.
Ac