Jellybean is a small, persistent web server written completely in Perl. It's fairly easy to convert a standalone application into a Jellybean object, especially if it already outputs HTML.
I think this fits what you're asking. Otherwise, you might have to find a front end system that will display HTML correctly, which isn't too difficult, but it's the opposite approach.