DictValue | Dict to transform into an HTML list tree. |
IndentationSpaces | Optional. 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. |
IndentationLevel | Optional. Intended for internal use. Defaults to 0. |
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.
% HtmlListTreeFromDict {one {two {three}} aaa bbb}
<ul>
<li>one
<ul>
<li>two: three>/li>
</ul>
</li>
<li>aaa: bbb>/li>
</ul>