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

Piece of news

Hi all WMLers,

among other things, here are features included in the most recent
wml-SNAP (i.e. wml-SNAP-199903171800.tar.gz)
* An undefined slice reports a warning instead of an error
* A ``make clean'' deletes wml_test/TEST.root
* The m4 stuff has been fixed to allow <symbol donald "donald.jpg">
* A variable can be defined without value, e.g. -DVAR or -DVAR=""

and as a guest-star
* Easier multi-lingual interface

The sense of ``easier'' is that you can process this file

#use wml::std::lang
#use wml::std::page

<lang:new id=en short>
<lang:new id=fr short>


without any command-line options or shebang lines. A foo.wml file will
generate in this case foo.en.html and foo.fr.html. This default can be
overriden by putting a <lang:star:slice:> tag anywhere in your files,
e.g. <lang:star:slice: %BASE.html.*> will produce foo.html.en and
The star in the filename is replaced by every language identifier, as in
other language related starred forms. 
If you like more complex combinations :
#!wml -o (ALL-LANG_*)+LANG_EN+FOO:foo.en.html \
      -o (ALL-LANG_*)+LANG_FR+FOO:foo.fr.html \
      -o (ALL-LANG_*)+LANG_EN+BAR:bar.en.html \
      -o (ALL-LANG_*)+LANG_FR+BAR:bar.fr.html
can be replaced by
#!wml -o (ALL-LANG_*)+LANG_**+FOO:foo.*.html \
      -o (ALL-LANG_*)+LANG_**+BAR:bar.*.html
Why this double-starred form? Because a star in the slice names has yet
a special meaning.

A final word to thank Paul Sponagl, his suggestion on <subst-in-page>
was really helpful.


P.S. : Concerning the navbars, i have downloaded your suggestions.
       Will think about it.

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