[Templates] Still using compiled template after delete.

Josh Rosenbaum josh@infogears.com
Fri, 03 Feb 2006 15:33:16 -0700


Cory Watson wrote:
> I'm unsure if this is the intended behaviour, but when you delete a
> template TT will continue to use the compiled one.  I expect this is
> to facilitate the deployment of compiled templates.
> 
> I dynamically adjust the INCLUDE_PATH to override templates. If I
> delete an overriding template, the default doesn't get picked up. 
> This is because when T::Provider stat()s the template I deleted it
> gets back an undef which is <= the mtime of the compiled template.
> 
> Is this the intended behavior or should that if() in T::Provider check
> for an undef on the stat?

Andy,

Any word on this issue from Cory?

-- Josh