Update domain name to kpe.io
[lml.git] / doc / readme.lml
1 ;;; -*- Mode: Lisp -*-
2
3 (in-package :lml)
4
5 (page readme
6    (head
7     (title "LML README")
8     (meta :http-equiv "Content-Type" :content "text/html; charset=iso-8859-1")
9     (meta :name "Copyright" :content "Kevin Rosenberg 2002 <kevin@rosenberg.net>")
10     (meta :name "description" :content "Lisp Markup Language Documentation")
11     (meta :name "author" :content "Kevin Rosenberg")
12     (meta :name "keywords" :content "Common Lisp, HTML, Markup Langauge"))
13
14    (body
15     (h1 "LML Documentation")
16     (h2 "Overview")
17     (p [,(a :href "http://lml.kpe.io" "LML") is a Common Lisp package for generating HTML and XHTML documents. 
18        LML is authored by 
19        ,(a :href "mailto:kevin@rosenberg.net" "Kevin Rosenberg"). The home page for LML is
20        ,(a :href "http://lml.kpe.io/" "http://lml.kpe.io/").])
21     
22     (h2 "Installation")
23     (p [The easiest way to install LML is to use the ,(a :href "http://www.debian.org/" "Debian")
24        GNU/Linux operating system. You can then use the command ,(tt "apt-get install cl-lml")
25        to automatically download and install the LML package.])
26     (p [On a non-Debian system, you need to have either ,(a :href "http://cclan.sourceforge.net/" "ASDF")
27            or ,(a :href "http://www.sourceforge.net/clocc/" "mk-defsystem")
28        installed to load the system definition file. You will need to change the source 
29        pathname in the system file to match the location where you have installed LML.])
30
31     (h2 "Usage")
32     (p [Currently, there is no documentation on the functions provided by LML. However, the source code is
33                    instructive and there are example files included in the LML package.])
34
35     (h2 "Examples")
36     (table :border 1 :cellpadding 3
37      (tbody
38       (tr
39        (td :colspan 2 :style "color:#000;background-color:#ccc;font-weight:bold;" "Iteration"))
40       (tr
41        (td 
42         (pre
43 "(i \"The square of the first five integers are)\"
44  (b
45    (loop as x from 1 to 5 
46      doing
47      (lml-format \" ~D\" (* x x))))"))
48        (td
49         (i "The square of the first five integers are")
50         (b
51          (loop as x from 1 to 5 
52                doing
53                (lml-format " ~D" (* x x))))))
54       ))
55     (hr)
56     (p [View this page's ,(a :href "http://lml.kpe.io/" "LML") ,(a :href "readme.lml" "source").])
57       ))