Hi guys, I recently upgraded from an older version of H::T to 2.4. My application has perl scripts in a different directory from the templates, and all of my TMPL_INCLUDE statements broke. Here is what I learned:
In the <TMPL_INCLUDE> documentation, it is stated that the path to the enclosing file is tried first. However, search_path_on_include docs says that only the working directory is tried. Finally, _find_file does appear to be written using the current working directory instead of the path of the enclosing file. Personally I think it makes more sense to have INCLUDE paths be relative to the enclosing document, but changing it would probably break lots of existing apps. After all, this whole issue came up because while upgrading from an older version of H::T, the behavior did change, and it did break my app. So maybe you've already discussed this topic on the list. Anyway, I'm just curious to get the consensus on which behavior is intended and possibly why. -Dave BTW, the comment to _find_file says "of" instead of "or". But it doesn't seem to cause any problems :)
