[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]
Questions...
- From: Carsten Wartmann <nospam@thanx>
- Date: Sun, 23 Jan 2000 00:59:41 +0100 (CET)
Hello,
I have installed wml 1.7.4 on a debian potato, till I get it to work
on my main machine, the potato system is a 486 with 8MB RAM, so
working isnīt really fun ;-)
My site is evolving good, but before I get into filling it with stuff
I have to clear some questions:
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:
#include "common.wml"
<:
@FILES = ();
push(@FILES, `find ./news/ -depth -type f -name "*.wml" -print`);
@FILES = sort(@FILES);
foreach $file (@FILES) {
@DATEI = ();
$file =~ s|\n$||;
$file =~ s|^\./||;
push(@DATEI, `cat $file`);
print @DATEI;
print "\n";
}
:>
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?)
Maybe Iīm totally wrong with my idea and someone could point me into
the right direction.
Thanks,
Carsten.
______________________________________________________________________
Website META Language (WML) www.engelschall.com/sw/wml/
Official Support Mailing List sw-wml@engelschall.com
Automated List Manager majordomo@engelschall.com