[WM] server-side includes
Justin Mason
jm.jmason.org
Wed Jul 10 05:36:15 IST 2002
Alan Jackson said:
> Well I've tried to do the shtml thing, and the problem I ran into is
> that I tried to set it up as metadata, but it didn't seem to work, I couldn't
> ever get it to recognize the suffix.
OK -- see below. I see what you mean, based on the code example.
> I tried the perl chmod thing too, but the timing was wrong. The perl got
> run before the final files were renamed, so it only worked if the file
> didn't get update d.
oops -- must see about this. Good point, I hadn't thought of that...
but anyway, let's see if the .shtml idea can work, first.
I would try using
<for name="pagename" values="${txtfiles}">
<out file="${pagename}.$[${pagename}.suffix]" name="${pagename}">
^^ ***NOTE*** ^
[etc.]
(note the use of $[..] to handle metadata. I haven't tried it, but it
_may_ work ;) Using ${...} to refer to metadata is not good and often
breaks.
A more "low-tech" way to do it, if that doesn't work, is to use a
<contentstable> as well as a <metatable>, and define a table of items
named like"pagename.suffix" in there -- but that's a bit kludgy :(
--j.
More information about the Webmake-talk
mailing list