|
Overall document abstractions |
|
| The same document as an LAML expression. We see that the the shift from HTML to LAML is a matter of a few syntactical changes. Notice the use of the underscore character, which suppresses the insertion of white space. This document cannot be processed immediately. However, the next version that we show can. |
| The document from above embedded in the LAML framework. Besides initial loading, we see the imperative writing of the functionally generated document to a specific target file. The if the source file is doc1.laml, the target file will be doc1.html. |
| The document from above abstracted with the procedure www-document. We also show the definition of www-document, which typically will be moved to some LAML library for general use. By the way, the LAML libraries already has similar procedures, such as generic-page in the style simple-html4.0-loose. |
| The document from above with pretty printing of the generated HTML document. We only on very rare occasions pretty print the resulting HTML document. The reason is that the HTML document is a derived, low level representation of the document which is only rarely consulted by humans. The parsing and pretty printing functions are part of a LAML tool for HTML parsing and pretty printing. |