Matt DeLeon wrote:
Hi all,
I have been attempting to include a block that has been defined with my
template, but I am constantly receiving an error message saying that the file
of the name of the block cannot be found. To illustrate:
[% BLOCK someblockname %]
...
[% END %]
[% INCLUDE someblockname %]
Produces the following error:
ERROR! Type: file Info: header: not found
Refreshing the page a few times seems to solve the problem, but clearly that is
not the solution. It is as if sometimes TT looks for the file 'someblockname'
and other times it loads the BLOCK 'someblockname'. This has happened with
several different blocks, so I am pretty sure it has nothing to do with the
code in the BLOCK. I have tried to use PROCESS instead of INCLUDE with no
success. Any thoughts on what is happening and if this problem can be
eliminated?
What version of TT are you using and are you using any custom TT code? Does the
exact code you gave us fail?
-- Josh
_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates