[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]

Re: Questions...

Denis Barbier writes:
 > On Sun, 23 Jan 2000, Carsten Wartmann wrote:
 > [...]
 > > I want to have a news and quicklinks area on my site, so I thought it
 > > would be the easiest to make directories "news" and "quicks" which
 > > contain simple files like i.e. NewVersion1.72.wml:
 > > 
 > > <date>12.12.1999</date>
 > > <link>www.blender.nl</link>
 > > <text>Blender Version 1.72</text>
 > > 
 > > and let wml render them into a nice table (the tags are definied in my 
 > > common.wml).
 > > 
 > > I first come up with the idea to let  perl do the work:
 > > This works some kind, but naturally the tags didnīt get expanded,
 > > because perl is pass 3... I tried to call wml with the option -p
 > > 1-3,1-9 but this didnīt work, it does the passes this way:
 > > 1,1,2,2,3,3,... (why?)
 > Passes are sorted. You have to put an exclamation mark after pass
 > specification to let this unsorted. As i did not know whether this is a
 > good idea, i did not document this feature. It is documented in
 > wml-SNAP.

This works ok, I used 1,3,2,4-9! but then some things doesnīt work ok, 
maybe I can figure out why.

1,2,3,1-9! doesnīt seem to work, the tmp files are not proceeded the
right way (normally one file goes to all passes, here after the first
3 passes a new tmp file is created, the changes of pass 1-3 are
discarded (so it seems to me).

 > > Maybe Iīm totally wrong with my idea and someone could point me into
 > > the right direction.
 > There are many solutions. The simplest is
 > #include "common.tmpl"
 > #include "news/*.inc"

#include "news/*.dat"

includes every file two times??? What are the other solutions? ;-)


Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com