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 10 : 20
Abstractions in LAML

We now return to one of the main points of the talk, namely how to take advantage of abstraction in an LAML document. Notices that similar things can be done in XML.

A powerful abstraction mechanism is extremely useful for the professional WWW author

In that respect WWW authoring is analogous to program development

(load (string-append laml-dir "laml.scm"))
(style "simple")
(load (string-append (startup-directory scheme-system) "functions.scm"))

(generic-page-1
  "Demonstration of abstractions"
  (con
    (standard-intro "My FAQ")
    (ul 
     (map present-faq-entry
       (list
          (faq-entry  'teacher
            "What is Lisp"
            "Lisp is a list processing language...")

          (faq-entry  'student
            "What is LAML"
            "LAML is Scheme in which HTML is mirrored...")

          (faq-entry  'student
            "What is the main differences between Scheme and Lisp"
            "Scheme is a relatively small, but powerful Lisp dialect...")
        )))
    (standard-signature)
  )
  white black blue blue
)

A complete LAML WWW page. We have introduced a number of 'ad hoc' abstractions, the implementation of which is shown below.

 

includes/functions.scmThe implementation of the abstractions.

The implementation of the abstractions.

The developed LAML document styles represent sets of domain specific abstractions