Yesterday I found a couple of new modules to help in this area. They don't appear to be complete solution, but perhaps a start. These are
HTML::DWT, which can currently fill in a Dreamweaver template from a Perl data structure and
HTML::LBI, which allows you to easily include a Dreamweaver Library Item in a script (which seems a lot like simply including a file...).
-mark