In BRL, a table is a sequence of rows. A row is a sequence of items, each of which has a label. Usually one gets a table from a SQL database. For simplicity, this example does not use a database query.
[ (define table1 (brl-make-table '((a "b" c) (1 2 x) (4 5 y))))]
The simplest way to deal with a table is to pass it to the
html
procedure, which formats it to appear on a WWW page.
[(html table1)]
A more sophisticated way to deal with a table is to use the
html-repeat
procedure. It reads an HTML start tag that follows,
then reads everything up to an end tag. It displays the start tag, then
interprets the BRL code in the middle repeatedly, once for each row.
Then it displays the end tag. For example, to repeat elements of an
unordered list, <UL>, the following works: