Sha256: f9f59f7eb531c6f7395f9777999f1716a243cbc951ced8ab3439182d5b4d4ce2

Contents?: true

Size: 396 Bytes

Versions: 1

Compression:

Stored size: 396 Bytes

Contents

module Blacklight
  module Rendering
    class Microdata < AbstractStep
      include ActionView::Helpers::TagHelper
      def render
        return next_step(values) unless config.itemprop
        next_step(values.map { |x| itemprop(x, config.itemprop) })
      end

      private

      def itemprop(val, itemprop)
        content_tag :span, val, itemprop: itemprop
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
blacklight-7.0.0.rc1 app/presenters/blacklight/rendering/microdata.rb