If you want to go that way, wicked_pdf does most of what you're after, if you use its own helper methods: https://github.com/mileszs/wicked_pdf/blob/master/lib/wicked_pdf_helper.rb Might be a good start. Dig around the source of Jammit (https://github.com/documentcloud/jammit) too.
Possibly XML+XSLT might actually be a good idea for the kind of thing you're doing. Or just a bare-bones HTML file with a stylesheet. Or a PDF. On Tuesday, 16 July 2013 at 3:54 PM, Gregory McIntyre wrote: > 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? -- 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.
