]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commit
Optionally add indentation to maps
authorSimon McVittie <smcv@debian.org>
Fri, 3 Aug 2012 11:48:46 +0000 (12:48 +0100)
committerSimon McVittie <smcv@debian.org>
Sun, 24 Feb 2013 13:10:24 +0000 (13:10 +0000)
commit3f27a9733660c811c6b8d640ddadbd811979e24c
treefcbec073fef9f941239f337f28febac1114ee14c
parentce1c7a3eab5fb2a0bcf639171a4f2dd2ef981963
Optionally add indentation to maps

This makes them easier to debug by showing the structure. Sample output
when $spaces is set to 4 spaces:

<div class='map'>
<ul>
    <li>
    <a href="../alpha" class="mapparent">alpha</a>
        <ul>
        <li>
        <a href="../alpha/1" class="mapitem">1</a>
        </li>
        </ul>
    </li>
    <li>
    <a href="../beta" class="mapitem">beta</a>
    </li>
</ul>
</div>
IkiWiki/Plugin/map.pm