Sha256: 83271eb67842dc63caec64566515801e3dc1060baa3e58d11a881be820a04714
Contents?: true
Size: 428 Bytes
Versions: 20
Compression:
Stored size: 428 Bytes
Contents
module InlineSvg module TransformPipeline def self.generate_html_from(svg_file, transform_params) document = Nokogiri::XML::Document.parse(svg_file) Transformations.lookup(transform_params).reduce(document) do |doc, transformer| transformer.transform(doc) end.to_html end end end require 'nokogiri' require 'inline_svg/id_generator' require 'inline_svg/transform_pipeline/transformations'
Version data entries
20 entries across 20 versions & 2 rubygems