Module function reference

list

A reference entry for list

Module function · HTML

list list (list items[, boolean ordered[, map attributes]]) ⇒ string

Creates an HTML unordered or ordered list.

Example

YASS
$html = HTML::list(["One", "Two"], true)

Input: items=["One", "Two"], ordered=true

Output: <ol><li>One</li><li>Two</li></ol>