NAME
HtmlListTreeFromDict — Return HTML list tree representing the dict.
SYNOPSIS
HtmlListTreeFromDict DictValue ?IndentationSpaces? ?IndentationLevel?
DESCRIPTION
Return Value
HTML list tree representing the dict. See example for details.
Arguments
DictValueDict to transform into an HTML list tree.
IndentationSpacesOptional. Number of spaces to indent for each level. This is for markup only and will not be seen by the person reading the HTML. Defaults to 5.
IndentationLevelOptional. Intended for internal use. Defaults to 0.
More Info
This program produces an unordered list as output. A future release may contain an option to use ordered lists.

For any value that is not a dict, itself, it will go within the same list element as the key. For any value which is itself a dict, the code will recurse and that dict will get its own list.

The following is a sample:

Note that IndentationLevel is intended for internal use only. The code is recursive and it is expected that it starts out at level 0. You may elect to try to set IndentationLevel yourself, but you will have to take the output and surround it in list tags.


For information regarding exceptions / errors, see here.
EXAMPLES
% HtmlListTreeFromDict {one {two {three}} aaa bbb}
<ul>
<li>one
<ul>
<li>two: three>/li>
</ul>
</li>
<li>aaa: bbb>/li>
</ul>
SEE ALSO
PrintDict
KEYWORDS
conversion, html, string, transform