Re: [Templates] How to redirect template output into another file?

2003-09-16 Thread Andy Wardley
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

Re: [Templates] How to redirect template output into another file?

2003-09-16 Thread Simon Wilcox
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);

Re: [Templates] Stylesheets

2003-09-16 Thread Clayton L. Scott
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

Re: [Templates] How to redirect template output into another file?

2003-09-16 Thread Andy Wardley
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

Re: [Templates] Stylesheets

2003-09-16 Thread Andy Wardley
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