indent-pixels-2.laml - A sample application of indent-pixel with some initial LAML context (software loading). | Lecture 2 - slide 45 : 46 Program 2 |
(load (string-append laml-dir "laml.scm")) (laml-style "simple-xhtml1.0-strict-validating") (define (indent-pixels p . contents) (div 'css:margin-left (as-string p) contents)) (write-html 'raw (html (head (title "Indent Pixel Example")) (body (p "Here is some initial text") (indent-pixels 45 (p "First paragraph of indented text") (p "Second paragraph of indented text") ) (p "Here is some final text"))))