RetroWeb

RetroWeb is an extension of RetroForth for creating XHTML documents.It features a readable and elegant Lisp-like syntax to ease writing XHTML.It is quite small, very extensible and gives you the full power of Forth when you need it.

Current: 1.3

What's new?

Installation

What you need to have

How to set things up

How to create RetroWeb pages

Currently there are two main sources of documentation available. First and foremost take a look at the file .head, where the dictionary of RetroForth is augmented by a few words, many of them intended only for internal use. RetroWeb in "action" can be studied in the source of this page, a file called index.rw.

Convenient abbreviations

( xhtml
print the XHTML processing instruction, the document type declaration and the required attributes for the html element
(meta)
print meta-tags for content-type (iso-8859-1) and generator (RetroWeb)
http
print a minimal HTTP-header, don't use this if you just compile HTML files
(css)
print a link-element for external style sheets

XHTML tags and attributes

Finally you can write HTML code using a Lispy syntax. A string stack (20 elements deep) keeps track of open HTML tags and closes them in the correct sequence. Additional spaces allow a straightforward implementation of the parser and improve readability quite a bit.

You can create abbreviations to save typing on your favourite attributes: Instead of

a' id="a1"' ( ... )

you can use either of the following methods:

" a1" >id ( ... )
id: a1 ( ... )

The same setup is available for the attribute class. Attribute values can be up to 20 characters.

How to get support

License: BSD

Copyright (c) 2004, Stefan Schmiedl
All rights reserved.
Redistribution and use in source and binary forms,
with or without modification, are permitted
provided that the following conditions are met:
Redistributions of source code must retain
the above copyright notice, this list of conditions
and the following disclaimer.
Redistributions in binary form must reproduce
the above copyright notice, this list of conditions
and the following disclaimer in the documentation
and/or other materials provided with the distribution.
Neither the name of Stefan Schmiedl nor the names
of other contributors may be used to endorse or promote
products derived from this software
without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Valid XHTML 1.0!Valid CSS!