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

Re: Examples: WML Itself



I thought I would show off my use of WML a little bit.

http://www.truespectra.com/

The front page is a "special case", and all the other ones are built
off of a template that looks like this:

#use wml::usr::ts
<tspage title="TrueSpectra Products">
<nav place="Products">
<divider>                     

.. content goes here  ...

</tspage>

The <nav place="..."> tag is what generates that tree-like navigator along
the side.  I have a directory contains the various navigation targets, 
for instance:

$ ls ~/nav/Products*

/home/www/nav/Products
/home/www/nav/Products_Beta.testing
/home/www/nav/Products_Online.ordering
/home/www/nav/Products_PhotoGraphics
/home/www/nav/Products_PhotoGraphics_OS2
/home/www/nav/Products_PhotoGraphics_PRO.for.OS2
/home/www/nav/Products_PhotoGraphics_Windows   

These names are then used to generate the links to the files themselves;
in the last case, the corresponding URL is understood to be

http://www.truespectra.com/products/photographics/windows.html

_ is the directory separator
. is a space

The script figures out which parts of the tree to expose and does it,
generating corresponding style sheet and other markup.  (The pages
degrade from IE / Netscape 4 to Lynx)

Scripts &c. available on request.

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