Hello,

        I was inspired by Randall Schwartz's "Building A Static Site with TT"
in the March Linux Magazine. I ran into a little problem. 

        I am trying to generate page names and page data from a datafile. From
the previous template toolkit emails, I understand the  FILTER
redirect("filename") is supposed to redirect output.

        My problem is I can't figure out how to set the OUTPUT_PATH variable. I
am consistently getting "OUTPUT_PATH not set".

        Here is the code that I have so far:

[% USE items = datafile('lib/itemnames') %]
[% FOREACH item = items.sort("ititle") %]
  [% item.itemid %] [% item.ititle %] [% item.idescription %] [%
item.ivalue %] [% item.iterms %] [% item.date %]
    [% FILTER redirect("src/items/${item.itemid}.html") %]
    [% END %]
[% END %]

        The setting for this piece of code is I am making web pages for a
silent auction. I am trying to create a web page for each item. 


_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to