[WM] [Q] Dependecies
Justin Mason
jm.jmason.org
Thu Dec 6 18:34:02 GMT 2001
Chris said:
> after improving the multi-language feature I wanted to check the dependecy
> support in conjuction with this feature.
>
> I realized that if one has some kind of menu structure on each page which is
> derived from the 'wmmeta' data of each content (like the 'title' metadata),
> this page is remade each time the content to which this meta data belongs
> changes.
>
> As the meta data chages less often than the content it would be nice to
> make the dependencies to the meta data independent of the dependecies to the
> content itself. I tried to use the 'metatable' tag but it just reads the the
> meta data from some other file and associates it with the content just as
> 'wmmeta' does.
Hi Chris,
The dependency stuff uses file modification times (which are the only
thing that we can check quickly to see if data has been modified).
So if you have metadata embedded in the content text file itself using
<wmmeta>, it has no choice but to rebuild; there's only one fiile
modification date for the entire file.
However if the output matches what's already on-disk, then it will
not overwrite it anyway -- so it's not a big problem.
I'm not sure how the dependencies for <metatable>s work though...
BTW, is there doco for the <lang> tag and other new features? I'd
be interested in tidying it up for a release soon-ish...
--j.
More information about the Webmake-talk
mailing list