|
|
HTML documents in LAML |
We introduce LAML by studying the LAML counterpart of a very simple HTML document |
It may, however, be tedious to write these tags for each and every small HTML page you
have to produce. |
We see that the the shift from HTML to LAML is a matter of a few changes, some of which
can be claimed to be of lexcical nature, and some of which are of concrete syntactical of nature.
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 be processed. |
Besides initial loading, we see the imperative writing of the functionally generated
document to a specific target file. If the source file is doc1.laml, the target file
will be doc1.html. |