chickadee » html-utils » itemize

itemize items #!key list-id list-class quote-procedureprocedure

Generates an HTML unordered list of items. The following attributes may be used:

  • list-id: the value for the HTML id attribute for the list.
  • list-class: the value for the HTML class attribute for the list.
  • quote-procedure: an one-argument procedure to specify the quoting of attributes' values for tags.

Examples:

(itemize '(apple watermelon strawberry))

Produces:

 "<ul><li>apple</li><li>watermelon</li><li>strawberry</li></ul>"
(itemize '(apple watermelon strawberry) list-id: "my-list" list-class: "lists")

Produces:

 "<ul id='my-list' class='lists'><li>apple</li><li>watermelon</li><li>strawberry</li></ul>"