I've got one more patch along these lines that adds similar functionality to hgweb, but I wanted to wait on the planned html-in-hgweb patches first so I could try and recycle some infrastructure from that. I have it working though, running at http://hgtest.durin42.com/searchhelp?q=progr if people want to take a glance at it.