It looks like you are missing the [% END %] tag to close your FOREACH.
Peter Guzis
Web Administrator, Sr.
ENCAD, Inc.
- A Kodak Company
email: pguzis-6wkqxLQJRsEAvxtiuMwx3w@xxxxxxxxxxxxxxxx
www.encad.com
-----Original Message-----
From: Edward Tsai [mailto:etsaiemail-/E1597aS9LQAvxtiuMwx3w@xxxxxxxxxxxxxxxx]
Sent: Wednesday, August 06, 2003 10:55 AM
To: templates-MnLy+PD7ppGDO3lXZvfOKmD2FQJk+8+b@xxxxxxxxxxxxxxxx
Subject: [Templates] Simple parse error
Hello everyone,
I'm getting the following error from the following
file
Template process failed:
Template::Constants::ERROR_FILE error - parse error -
request.html.tmpl line 10: unexpected end of input
from
[% INCLUDE header
title = 'TEmplate Toolikt'
%]
<ul>
[% FOREACH person = login_name %]
<li> loginname is [% person %]
</ul>
[% INCLUDE footer %]
which is called from another file referencing
my $template = Template->new({
INCLUDE_PATH =>
'/home/etsai/scrs/templates/src:/home/etsai/scrs/templates/lib',
PRE_PROCESS => 'config',
});
$template->process('request.html.tmpl', $vars)
|| die "Template process failed: ",$template->error(),
"\n";
}
and the standard header footer files are under
/home/etsai/scrs/templates/lib
Thank you,
-Edward
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
_______________________________________________
templates mailing list
templates-MnLy+PD7ppGDO3lXZvfOKmD2FQJk+8+b@xxxxxxxxxxxxxxxx
http://lists.template-toolkit.org/mailman/listinfo/templates
|
Try Searching:
servers, voip, java, networking, microsoft ...
|
|
|
|