Sha256: 649604832a60c9f7335e14138b1279929a25c336a216743ba7840067e01c2029
Contents?: true
Size: 301 Bytes
Versions: 9
Compression:
Stored size: 301 Bytes
Contents
module Derelicte class Inliner def inline(html_str, css_str) doc = ::Derelicte.doc_from_str(html_str) analyzer = ::Derelicte.css_analyzer_from_str(css_str) job = InlinerJob.new(doc, analyzer) job.apply_rules_to_doc ::Derelicte.doc_to_str(job.doc) end end end
Version data entries
9 entries across 9 versions & 1 rubygems