What am I doing wrong?
GLOBAL "dynamic_include":
sub {
# This is so we can include a detail page template
# dynamically based on Detail_Template col in Links table
# usage: <%dynamic_include($Detail_Template)%>
my $veitpl = shift;
my $veitags = GT::Template->tags;
return GT::Template->parse($veitpl, $veitags, { print => 0 } );
CODE FROM the TEMPLATE FILE:
<%if Detail_Template%>
<%dynamic_include($Detail_Template)%>
<%else%>
<%include detailed_std.html%>
<%endif%>
BUILD SAYS:
A fatal error has occured:
Please enable debugging in setup for more details.
Stack Trace======================================Links (1544): Links::environment called at /cgibin/admin/Links.pm line 431 with no arguments.Links (1544): Links::fatal called at GT::Base::error line 362 with arguments (GT::Template::Parser (1544): Unable to locate template file 'detailed_std.html' in '.' or any inheritance directories at GT::Template::_compile_template line 627. ).Links (1544): GT::Base::error called at /cgibin/admin/GT/Template/Parser.pm line 99 with arguments (GT::Template::Parser=HASH(0xa960058), CANTFIND, FATAL, detailed_std.html, .).Links (1544): GT::Template::Parser::parse called at GT::Template::_compile_template line 627 with arguments (GT::Template::Parser=HASH(0xa960058), detailed_std.html, HASH(0xa9235c4), [undef]).Links (1544): GT::Template::_compile_template called at /cgibin/admin/GT/Template.pm line 454 with arguments (GT::Template=HASH(0xa9752fc), detailed_std.html, ./compiled/detailed_std.html.compiled, [undef]).Links (1544): GT::Template::load_template called at /cgibin/admin/GT/Template.pm line 93 with arguments (GT::Template=HASH(0xa9752fc), detailed_std.html, [undef]).It
Build complains that it can't find 'detailed_std.html', yet it is there and the debug show that it compiled it. However, there is no compiled file in the /compiled directory. When I do a normal <%include detailed_std.html%>, it works fine. I'm lost...
GLOBAL "dynamic_include":
sub {
# This is so we can include a detail page template
# dynamically based on Detail_Template col in Links table
# usage: <%dynamic_include($Detail_Template)%>
my $veitpl = shift;
my $veitags = GT::Template->tags;
return GT::Template->parse($veitpl, $veitags, { print => 0 } );
CODE FROM the TEMPLATE FILE:
<%if Detail_Template%>
<%dynamic_include($Detail_Template)%>
<%else%>
<%include detailed_std.html%>
<%endif%>
BUILD SAYS:
A fatal error has occured:
GT::Template::Parser (1544): Unable to locate template file 'detailed_std.html' in '.' or any inheritance directories at GT::Template::_compile_template line 627.
Please enable debugging in setup for more details.
Stack Trace======================================Links (1544): Links::environment called at /cgibin/admin/Links.pm line 431 with no arguments.Links (1544): Links::fatal called at GT::Base::error line 362 with arguments (GT::Template::Parser (1544): Unable to locate template file 'detailed_std.html' in '.' or any inheritance directories at GT::Template::_compile_template line 627. ).Links (1544): GT::Base::error called at /cgibin/admin/GT/Template/Parser.pm line 99 with arguments (GT::Template::Parser=HASH(0xa960058), CANTFIND, FATAL, detailed_std.html, .).Links (1544): GT::Template::Parser::parse called at GT::Template::_compile_template line 627 with arguments (GT::Template::Parser=HASH(0xa960058), detailed_std.html, HASH(0xa9235c4), [undef]).Links (1544): GT::Template::_compile_template called at /cgibin/admin/GT/Template.pm line 454 with arguments (GT::Template=HASH(0xa9752fc), detailed_std.html, ./compiled/detailed_std.html.compiled, [undef]).Links (1544): GT::Template::load_template called at /cgibin/admin/GT/Template.pm line 93 with arguments (GT::Template=HASH(0xa9752fc), detailed_std.html, [undef]).It
Build complains that it can't find 'detailed_std.html', yet it is there and the debug show that it compiled it. However, there is no compiled file in the /compiled directory. When I do a normal <%include detailed_std.html%>, it works fine. I'm lost...