Sha256: cd88b606192f6e2afeddaad656ff20cc527e08f6c7e0fbffbab801c0e4a34bfa

Contents?: true

Size: 244 Bytes

Versions: 6

Compression:

Stored size: 244 Bytes

Contents

module SvgSprite
  module Template
    class CSS
      def template
        @template ||= File.read("#{__dir__}/css.erb")
      end

      def call(source, options)
        ERB.new(template, nil, "-").result binding
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
svg_sprite-0.2.3 lib/svg_sprite/template/css.rb
svg_sprite-0.2.2 lib/svg_sprite/template/css.rb
svg_sprite-0.2.1 lib/svg_sprite/template/css.rb
svg_sprite-0.2.0 lib/svg_sprite/template/css.rb
svg_sprite-0.1.1 lib/svg_sprite/template/css.rb
svg_sprite-0.1.0 lib/svg_sprite/template/css.rb