How to handle such template operation?
<%if Contact Name%><%Contact Name%><%endif%>
It will be always false because only Contact Name isn't handled together.
Using quotes <%if "Contact Name"%>, I get the following error:
GT::Template (3732): Unable to run compiled template file '/path/link.html.compiled'. Reason: $@: syntax error at /path/link.html.compiled line 106, near "() "
(Might be a runaway multi-line {} string starting on line 100)
syntax error at /path/link.html.compiled line 110, near "else"
The error is at line 106, that value is missing from if () statement:
if (defined($tmp = $self->_get_value(q{Contact Name}, $strict))) {
$return .=(ref $tmp eq 'SCALAR' ? $$tmp : $escape ? GT::CGI::html_escape($tmp) : $tmp);
}
else {
$return .= q{Unknown Tag: 'Contact Name'};
}
}
else {
$return .= q{-};
}
Any idea how to solve the problem?
Best regards,
Webmaster33
Paid Support from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...
<%if Contact Name%><%Contact Name%><%endif%>
It will be always false because only Contact Name isn't handled together.
Using quotes <%if "Contact Name"%>, I get the following error:
GT::Template (3732): Unable to run compiled template file '/path/link.html.compiled'. Reason: $@: syntax error at /path/link.html.compiled line 106, near "() "
(Might be a runaway multi-line {} string starting on line 100)
syntax error at /path/link.html.compiled line 110, near "else"
The error is at line 106, that value is missing from if () statement:
Code:
if () { if (defined($tmp = $self->_get_value(q{Contact Name}, $strict))) {
$return .=(ref $tmp eq 'SCALAR' ? $$tmp : $escape ? GT::CGI::html_escape($tmp) : $tmp);
}
else {
$return .= q{Unknown Tag: 'Contact Name'};
}
}
else {
$return .= q{-};
}
Any idea how to solve the problem?
Best regards,
Webmaster33
Paid Support from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...