[Templates] TT and dependencies
Keith G. Murphy
keithmur@mindspring.com
Tue, 14 Oct 2003 11:47:50 -0500
Andy Wardley wrote:
> $ ttree --depend index.html=header,footer,menu
>
> What it can't do it work out for itself which templates are dependant on
> which other files. The reason is that the language is dynamically
> interpreted:
>
> [% INCLUDE "$dir/$file" %]
>
> Without processing the template with live data, there's no way of knowing
Yes, exactly.
Thanks, everyone, for the input and ideas.
One nice product of knowing dependencies and using make (or the new
ttree --depend) is that the modtime of the target files would more truly
reflect the time of the last source change to any component. I.e., it
would be when you last did 'make' *and* there really had been a source
change.
But there are other ways of doing that sort of thing.
Thanks again.