From 2d6907bbdd2df0572fe6e63e27e1e8d581b5ce27 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sun, 28 May 2023 23:09:02 -0700 Subject: README: mention smooth syntax of TL-WHO. --- README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/README.md b/README.md index 9565161..7b569a5 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,30 @@ What is noteworthy here is that a single string is produced out of the nested Lisp syntax, and that string is therefore sent to the `*stdout*` stream using a single call to the `put-string` function. +Another nice feature of TL-WHO is that it has a "quiet" syntax free +of extraneous punctuation and nesting. A HTML tag is +written as a list headed by a keyword symbol, for instance `(:a)` +encodes ``. If this keyword is followed by keyword-value +properties, those are the attributes: + + ::text + (:a :href "foo.html") + -> + + (:a :href "foo.html" :target "__blank") + -> + +Then any remaining material after the keyword-value pairs is +interpreted as the tag content. + + ::text + (:a :href "foo.html" :target "__blank" "foo") + -> foo + +All material that is not a tag or attribute keyword is an evaluated Lisp +expression, so no special syntax is needed to indicate evaluation. + + ## Documentation Users of TL-WHO may rely on the original CL-WHO API documentation. -- cgit v1.2.3