Mercurial > hg > config
diff python/tree.py @ 443:fbb5b143349a
notes to self
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Fri, 09 Aug 2013 15:58:58 -0700 |
parents | 9b7f5e31b465 |
children | 93dc0507ab3b |
line wrap: on
line diff
--- a/python/tree.py Fri Aug 09 15:23:59 2013 -0700 +++ b/python/tree.py Fri Aug 09 15:58:58 2013 -0700 @@ -77,6 +77,21 @@ ## Serializers +def tree2html(tree): + """ + . + ├── a8e.py + ├── abstract.py + ├── accentuate.py + + -> + + <ul> + <li>a8e.py</li> + ... + """ + + # How to serialize a tree -> JSON? ###