[ via the Silicon Valley Patterns Mailing List ] Martin Fowler discusses design patterns for going from data to HTML. He does it in two steps, data to logical page (that is the components of the page such as shopping cart, weblog entry, etc.) and then logical page to presentation. This two step method makes site maintenance less of a hassle.
These methods are implemented in an article on XSLT template languages which I linked previously.