Mercurial > hg > config
changeset 443:fbb5b143349a
notes to self
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Fri, 09 Aug 2013 15:58:58 -0700 |
parents | 3982b7ad596b |
children | 443457cb33d0 |
files | python/tree.py |
diffstat | 1 files changed, 15 insertions(+), 0 deletions(-) [+] |
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? ###