[WM] some remarks on WebMake

Joern Clausen joern.TechFak.Uni-Bielefeld.DE
Tue May 8 14:18:30 IST 2001


Hi!

Thanks for your reply.

> > 2. Are there any known problems with this cache? I have some very basic
> >    pages, with the title given in <wmmeta title="..."> and referenced
> >    as $[this.title]. Every now and then, the title from another page is
> >    inserted. This error is "fixed" by simply running webmake again.
> >    Currently I make always two passes with "webmake -F", but this is
> >    not really desirable. This happens with Solaris/SDBM_File and
> >    NetBSD/DB_File, so I don't think that the DB part itself is broken.
> >    This got worse with version 1.2, now the error remains, even after
> >    running webmake again.
> 
> !! Even after running "webmake -F"?  Very strange.  I haven't seen this...

Yes. Things are even more strange: Actually, I define two titles. A longer
one to be placed between <h1>...</h1>, and a short one to appear in the
<title> part. So I have

  <head>
     ...
     <title>some fixed text ($[this.stitle])</title>
  </head>

  <body>
     ...
     <h1>$[this.ltitle]</h1>
     ...
  </body>

stitle is substituted with the correct value, ltitle not. Do the round
brackets confuse anybody??

I can send you the whole sources to my web pages (they are just a few
files), if you wan't to take a closer look.

> > 3. More a request for enhancement (if it is one at all): My source files
> >    are distributed across a directory hierarchie, which is the same as in
> >    the output directory. If this is a clever decision is another question...
> >    I declare them with
> >    <contents src="src/" name="*.txt" format="text/html"/>
> >    <contents src="src/links" name="*.txt" prefix="links/" format="text/html"/
> >    to be able to access them as src/foo.txt and src/links/bar.txt
> >    respectively. What about an attribute "recursive", or even a default
> >    behaviour, so that the first contents definition would find the files
> >    in subdirectories as well?
> 
> This is supported already -- use "..." in the "name" attribute:
> 
> 	<contents src="src/" name=".../*.txt" format="text/html"/>

Ah, now I found it in the docs. I didn't realize that "..." had a special
meaning, I thought it represented just an unspecified path in the example.

BTW: I had to use

   <contents src="src" name=".../*.txt" format="text/html"/>

Note the missing "/" after "src". Otherwise, webmake tried to access
"src/src/foo.txt".

-- 
 Joern Clausen                                joern at TechFak.Uni-Bielefeld.DE
 Faculty of Technology                   http://www.TechFak.Uni-Bielefeld.DE
 Bielefeld University, Germany




More information about the Webmake-talk mailing list