I don't feel comfortable answering this question as I have not used tpage as of
yet. However, no one else has answered, and so I thought I'd venture a guess.
Perhaps your code has subclassed the Template::Provider class and is overriding
the functionality of storing compiled templates? The intent of the original
author may have been to run tpage to compile the Template Toolkit files, and
thus all changes would not work until tpage was run once again. This
effectively would make sure that any changes to files could go through a
verification process. It could also remove the stat call to check the modified
date on the original file and just grab the compiled template.
If you see a subclassed Template::Provider, that would be the first place I
would look.
-- Josh
Eric Ladner wrote:
I'm walking into the middle of an already installed and running project
that uses the Template Toolkit and have a question or two about some
strange things I'm seeing...
I'm trying to modify some of the ".tmpl" files to change the html to a
new look/feel to match the rest of a web site that's been converted
already. When I make changes to the template files ( e.g. I'm putting
new HTML content in a header.tmpl that's included in other files), the
requested pages through the site don't show the new content.
I poked around and found the ".tmpl.ttc" files (precompiled/cached
files) and they do not appear to be getting updated to reflect changes
in their corresponding ".tmpl" file.
Oddly enough, if I run tpage on the header.tmpl file, it shows the
correct output.
Is there some manual process to updated the .ttc files? I'm not sure if
there's some larger problem (permissions, etc) but at this point, if I
could get everything in sync, I'd be making progress.
Thanks in advance,
Eric Ladner
_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates