Lecture overview
Keyboard shortcut: 'u'  Previous page
Keyboard shortcut: 'p'  Next page
Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  slide
Keyboard shortcut: 't'  Help page about these notes  Alphabetic index  Course home    Slide 9 : 26
An example of a simple HTML4.0 page

We here show a simple LAML page, using HTML mirror functions from the surface mirror. We also link to generated HTML output. This page has been produced by pretty printing the HTML file (using the LAML pretty printer for HTML) followed by a HTML protection of the HTML special characters. Thus, the automatic production of this pages is an excellent example of the power of the LAML approach.

Below we show a simple page using the HTML4.0 accurate mirror in Scheme

(load "html4-loading-stuff.scm")

(define _ #f)

(html-write
 (html
  (head 
    (title "Here is the title")
  )

  (body 
    (h1 "A header")

      (con "Here " (b "comes") " the") (em "document text") _ ", with an " (b "enumeration") _ "."  (p)

      (ul 'type "square"
        (li "Item 1" _ ";")
        (li "Item 2" _ ";") 
        (li "Item 3" _ ".") 
      )

    (a 'href "../html/goerlitz.html" "A link to the table of contents") _ "." (br)

    "And finally some more " (kbd "text")_"."
  )
 )
)

An LAML document using the most advanced mirror. The loading stuff can be seen by browsing to the program below

includes/html4-loading-stuff.scmThe loading stuff used by the LAML example above.

The loading stuff used by the LAML example above.