[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]
Re: rfc: extended shebang expansion
- From: Denis Barbier <nospam@thanx>
- Date: Tue, 1 Aug 2000 01:07:10 +0200
On Mon, Jul 31, 2000 at 06:47:04PM +0200, Clemens Oertel wrote:
> hi there,
>
> trying to keep two separat html-trees (one local, one for uploading), i
> figured it'd be nice to have one more macro for the shebang line (besides %DIR
> and %BASE, so let's call it %PATH) which extends to a previously defined
> environment variable (let's say, WMLOUTPATH).
>
> having changed wml's source code by adding the line
>
> 543| $opts =~ s|%PATH|$ENV{WMLOUTPATH}|sg;
>
> and having exported WMLOUTPATH=/somepath, then with the line
>
> #!wml -o %PATH/something.html
>
> we'd get the file /somepath/something.html.
>
> now isn't that nice or what?
Hi Clemens,
Albert Reiner send a similar request on June, but i did not yet decide
whether it is worth implementing such a beast. His message is at
http://www.engelschall.com/sw/wml/news/list/msg01713.shtml
Maybe you could explain why you need such a feature, it could help me
finding the best solution.
Note that wml::std::lang use a trick to perform the same action. In
fact, output files are always generated by wml_p9_slice, which has its
own syntax and shebang line. So the trick is to generate wml_p9_slice
shebang lines during previous passes.
--
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