Well, you don’t see this every day.
One client of ours wants to add some shopping cart jazz to a few of his websites. Nothing new here, especially since we’ve developed our own kick ass shopping cart. The oddity is that he wants most of the static content of some very old-school sites imported in pure HTML form to a CMS for online editing. No layouts or cleanup, just the old, pure HTML. Actually, one of the sites used image maps for navigation (the whole page is solely images!), so we are doing a bit of cleanup there.
Comatose is a nice ‘microCMS’ that sits happily ontop of an existing Rails app. Today I whipped up a script to import a static site into comatose.

It’s not much … you can download it here. Usage is simple:
html2Comatose: Import HTML into the Comatose MicroCMS
Usage: ./html2comatose app-root html_pages_root [additional extensions you'd like to import]
Example: html2Comatose ~/devel/myapp ~/var/www/httpdocs php rhtml
After the import is complete, you’ll want to put something like this in your /config/routes.rb ..
map.comatose_admin
map.comatose_root '/site', :layout => nil
map.connect '', :controller => 'comatose', :action => 'show', :index => '', :page => 'index'
Haha, I’m not sure if anyone will every find a need for this, but let me know if you end up using it for anything.