Bit of an unknown feature, but tree can output HTML. I've used tree -H to generate directory listings more than once.