SiteMesh style mashups with Rails

Has anyone done any Sitemesh stye mashups using Rails? I want to grab an entire HTML page from another site and mash it into my sites layout/ chrome. To do that I would need to strip the head section and the body tags and just plop in the guts. I might also need to grab any links to javascripts or images out of the remote page's head section and put it in my head section. Has anyone done something like this with Rails?

Thanks!

Steve