

| |||||||
|
You are here: Root > By Topic > Web Development > HTML Macros
YstokHTML allows generating and parsing HTML and XHTML documents.
| Web site | http://lisp.ystok.ru/yhtml/ |
| Mailing list | |
| Version | 0.2.5 - |
| Maturity | Stable |
| OS compatibility | |
| ASDF installable | Yes |
| Official Download | |
| Mirrored Download | |
| Source code repository |
YstokHTML is based on the following:
Both the YstokHTML generator and parser support the LHTML, the S-expression language used by the Franz's HTMLGen facility and described by Peter Seibel in his book Practical Common Lisp.
html macro to htm (a la Edi Weitz's
CL-WHO).(htm :hr) can produce
'<hr>' or '<hr />' depending on *html-mode*.
Whether print-html-... functions produce XHTML termination '/>' also depends on *html-mode*.*html-mode* is :xml.
*html-mode* is :xml or
*attribute-case* is :downcase; so (htm ((:p class 'a)))
produces '<p class="a"></p>'.
:include, :nbsp, :jscript, :format, :format-safe,
:!doctype, :?xml.
:escape,
which invokes full-fledged html-template:escape-string
and escapes not only four characters, but all satisfying template:*escape-char-p*.:optional,
which is similar to :if*.if* macro from the htmlgen.lisp source code. html-process to descriptor:
name-attrs renamed to name-attr;
uri-attrs specifying a list of attributes of type URI.
prin1-safe-http-string replaced by generic prin1-attribute-value
of signature: (val &optional stream).
html-print-list and html-print signature: (form &optional stream).
def-std-html now defines a macro named as follows:
(intern "key")
instead of
(intern "WITH-HTML-key"),
produced by the Franz's HTMLGen.attribute-name-string and prin1-attribute-value, now
html-standard-print generates HTML close to what is produced by the
htm macro.You must be logged to add a note
You must be logged to add a comment