A while back I wrote an Applescript that would render an outline from OmniOutliner into html based on user-defined templates.