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

Re: [BUG REPORT] WML



On Tue, 16 Mar 1999 rvbijl39@calvin.edu wrote:

> Problem Description:
> | I wanted to embed variable A as the default value for
> | variable B. When filled in, it didn't work properly. 
> | (thus the bug report ;)
[...]
> | <HEAD>
> |   <META...>
> |   <TITLE>$(TITLE_BAR:-$(TITLE))</TITLE>
> | </HEAD>
> | ...

Hi Ryan,

indeed nested substitutions don't work. An alternative is to write
 <HEAD>
   <TITLE>
$(TITLE_BAR:+# )$(TITLE)
$(TITLE_BAR:*# )$(TITLE_BAR)
   </TITLE>
 </HEAD>
 
> | One other thing which i was looking for, was a way
> | to insert the date of the file (or the compile date,
> | or something like that. Or both?). It would make the
> | last changed date a lot easier to do.  Insertable in
> | various date formats would be good too, IMO.

There are 4 variables named
  WML_SRC_CTIME WML_SRC_ISOTIME WML_GEN_CTIME and WML_GEN_ISOTIME.
SRC means the last modification time of the file you are processing.
CTIME and ISOTIME are formats.

If you want more customization, you have to write your own perl macros.

> | Other than that, i love WML! 

Thanks,

   Denis


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