X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=doc%2Freadme.lml;h=3fe668f911c8610a96596dccd0d34c4c041d9c04;hb=521ffce1fbb7bc1f61fa81c6f8986a9de01f83fc;hp=3c99494093c0342f1f16b916d2201b81509c0e19;hpb=ffe90b4eec07ec874aec676fbde9d65effd7451d;p=lml2.git diff --git a/doc/readme.lml b/doc/readme.lml index 3c99494..3fe668f 100644 --- a/doc/readme.lml +++ b/doc/readme.lml @@ -2,7 +2,7 @@ (in-package #:lml2) -(page ("readme") +(html-file-page ("readme") (html (:head (:title "LML2 README") @@ -30,6 +30,11 @@ "The home page for LML2 is " ((:a :href "http://lml2.b9.com/") "http://lml2.b9.com/") ".") + + (:h2 "Prerequisites") + (:ul + (:li ((:a :href "http://cliki.net/asdf") "ASDF")) + (:li ((:a :href "http://cliki.net/kmrcl") "KMRCL"))) (:h2 "Differences between LML2 and LML") (:p "The syntax and HTML generation for LML2 are based on Franz's htmlgen macro. Personally, I like the syntax of LML better than LML2, but there are advantages of Franz's approach:") @@ -43,7 +48,10 @@ (:li "Lowercase tag names so that (html ((:p class 'a))) now produces '<p class=\"a\"></p>") (:li "Addition of new tags such as :insert-file, :nbsp, :jscript") (:li "Removal of the if* macro from the htmlgen.lisp source code") - (:li "Incorporation of LML's standard site macro and other helper functions.")) + (:li "Incorporation of LML's standard site macro and other helper functions.") + (:li "Addition of special attribute tags (:if :when :optional :format :format") + (:li "Automatic quoting of attribute values for non-string values") + (:li "Post macroexpansion code walker to collape sequential write-string calls")) (:h2 "Installation") (:p @@ -73,16 +81,12 @@ (:pre "(html (:i \"The square of the first five integers are: \") - (:b - (loop as x from 1 to 5 - doing - (lml-format \" ~D\" (* x x)))))")) + (:b (loop as x from 1 to 5 + doing (html " " (:princ (* x x))))))")) (:td (:i "The square of the first five integers are: ") - (:b - (loop as x from 1 to 5 - doing - (lml-format " ~D" (* x x)))))) + (:b (loop as x from 1 to 5 + doing (html " " (:princ (* x x))))))) )) :hr (:p