Python, CSS, and collapsible trees

Given the speed at which our wiki is growing, we’ll need a more efficient way or indexing all the pages. Right now Trac just lists every page one after another. The idea was proposed to have a collapsible tree/list so that we can expland and contract the lists based on their prefixes.

I borrowed Stephan Diehl’s prefix finding script and started hunting around for an implementation of a CSS only collapsible tree. I found numberous JavaScript implementations but nothing CSS only. I shy away from using JavaScript to do things that CSS is better suited to be doing. Then I found out that css hyper-display: folding is what I’m looking for but doesn’t look implemented so far as I can tell. I poked around with a JavaScript implementation but it wasn’t elegant enough for me so I may just write my own JavaScript to handle it.

Leave a Reply

You must be logged in to post a comment.