[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]
Re: diversion tags don't seem to be rendered
- From: Denis Barbier <nospam@thanx>
- Date: Fri, 29 Sep 2000 21:22:49 +0200
On Fri, Sep 29, 2000 at 08:29:30PM +0100, Werner Heuser wrote:
>
> Denis Barbier wrote:
> >
> > On Thu, Sep 28, 2000 at 11:42:00AM +0100, Werner Heuser wrote:
> >
> > > Hi,
> > >
> > > when testing the diversion feature in WML 2.0.4
> > > (Debian) like in the example below,
> > > I encounter, that they still remain in the html output file.
> >
> > Hi Werner, you must add
> > #use wml::std::tags
> >
>
> Hi Denis,
>
> thank you for your fast and friendly response. I added
> your recommendation. Now it works.
>
> The code snippet is part of my other wml files, which have
> been worked without adding #use wml::std::tags in wml 1.7.4
> and where I used the diversion tag in this form {#NAME:data:#}.
Hi Werner, i misunderstand your point.
You need #use wml::std::tags inclusion because of the <divert>, <enter>
and <dump> tags.
This is in no way related to the replacement of <<NAME>> by {#NAME#}
> Is there an easy way to convert these tags to the new standard?
Write a shell script replace.sh
#! /bin/sh
sed -e 's/:#}/:##}/g' $1 > $1.tmp && mv $1.tmp $1
make it executable and invoke
prompt$ find . -type f -name \*.wml -exec `pwd`/replace.sh {} \;
> I just use this feature many times in many files.
>
> BTW:
> As far as I remember this important change wasn't announced in the
> changes for WML 2.0.x
Hmmm, indeed. I will think of a way to fix this.
--
Denis Barbier
WML Maintainer
______________________________________________________________________
Website META Language (WML) www.engelschall.com/sw/wml/
Official Support Mailing List sw-wml@engelschall.com
Automated List Manager majordomo@engelschall.com