I'm not sure if I'm using the right search terms...

Is there a gem that would let me take a pretty "standard" Rails HTML page 
with a stylesheet link tag and a JS include tag and images with 
non-data-URI sources, and put the stylesheets in <style> tags and the JS in 
<script> tags and convert any images into data URIs, so that the page 
becomes this one transportable file with everything in it?

The goal is to save a copy of a single page (a report) to disk on a server, 
to be kept as a historical paper trail. I thought the HTML rendering of the 
report would be the closest I cared to get to the source/original, so I'd 
save that somehow. But I want to package its dependencies, so it's isolated 
against site wide updates. If there is a better way to achieve that sort of 
requirement in Rails, I am all ears.

wget with a few carefully picked options might be a good solution too. 
Anybody have any experience here?

Regards,
Greg


-- 
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/rails-oceania.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to