Sha256: 4e8648dff97d29e63671c3aa9ed8b2586a4443a9fc601bdeae5f44e1a9d08cdc

Contents?: true

Size: 339 Bytes

Versions: 6

Compression:

Stored size: 339 Bytes

Contents

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

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

      private

      def names(source)
        source.to_a.map(&:name).join(", ")
      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/scss.rb
svg_sprite-0.2.2 lib/svg_sprite/template/scss.rb
svg_sprite-0.2.1 lib/svg_sprite/template/scss.rb
svg_sprite-0.2.0 lib/svg_sprite/template/scss.rb
svg_sprite-0.1.1 lib/svg_sprite/template/scss.rb
svg_sprite-0.1.0 lib/svg_sprite/template/scss.rb