YstokHTML is a collection of Common Lisp libraries for generating and parsing HTML and XHTML documents. YstokHTML is based on:
All the libraries are based on effective algorithms not relying on regular expression functions.
Both the YstokHTML generator and parser support the LHTML, the S-expression language used by the Franz's HTMLGen facility. Recently, Peter Seibel has described the FOO HTML, a similar generator syntax, in his book Practical Common Lisp.
(html:with-html-stream (*standard-output*) ((:table :border 2) (:tr ((:th :colspan 2) (:i "The square of four integers"))) (dotimes (i 4) (html:htm (:tr (:td (:princ i)) (:td (:b (:princ (* i i))))))))
YstokHTML is available from
The distribution package contains both the ASDLite/ASDF file yhtml.asd and the LispWorks system definition file defsys.lisp.
Here is change.log.
Currently, there is no documentation on YstokHTML other than for the HTMLGen and PHTML mentioned above. However, the source code is instructive and there are the demonstration file html-examples.lisp and the test cases file phtml-test.lisp in the distribution package.
If you fail to grab the original documentation at Franz's website, try our local copies htmlgen.html and phtml.htm.