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.
(xhtml
or (br)
with 1.3 you should use ( xhtml
or ( br )
(http)
is now called http
, since it is not an element. (valid)
for including the W3C validation icon. retroweb.conf
retroweb.htaccess
works: copy it to the base RetroWeb directory and rename it to .htaccess
. /bin/sh
on your machine, replace the first lines of the supplied shell
files with an approprate shell
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
.
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.
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.