Sha256: 0a8e7c7329a59e883283206e0761d95919c44fc481b09e629f579c99e55686d5

Contents?: true

Size: 418 Bytes

Versions: 60

Compression:

Stored size: 418 Bytes

Contents

# frozen_string_literal: true

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)
        tag.span val, itemprop: itemprop
      end
    end
  end
end

Version data entries

60 entries across 60 versions & 2 rubygems

Version Path
blacklight-7.40.0 app/presenters/blacklight/rendering/microdata.rb
blacklight-7.39.0 app/presenters/blacklight/rendering/microdata.rb
blacklight-7.38.0 app/presenters/blacklight/rendering/microdata.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/blacklight-7.37.0/app/presenters/blacklight/rendering/microdata.rb
blacklight-7.37.0 app/presenters/blacklight/rendering/microdata.rb
blacklight-7.36.2 app/presenters/blacklight/rendering/microdata.rb
blacklight-7.36.1 app/presenters/blacklight/rendering/microdata.rb
blacklight-7.36.0 app/presenters/blacklight/rendering/microdata.rb
blacklight-7.35.0 app/presenters/blacklight/rendering/microdata.rb
blacklight-7.34.0 app/presenters/blacklight/rendering/microdata.rb
blacklight-7.33.1 app/presenters/blacklight/rendering/microdata.rb
blacklight-8.0.0.beta4 app/presenters/blacklight/rendering/microdata.rb
blacklight-8.0.0.beta3 app/presenters/blacklight/rendering/microdata.rb
blacklight-8.0.0.beta2 app/presenters/blacklight/rendering/microdata.rb
blacklight-8.0.0.beta1 app/presenters/blacklight/rendering/microdata.rb
blacklight-7.33.0 app/presenters/blacklight/rendering/microdata.rb
blacklight-7.32.0 app/presenters/blacklight/rendering/microdata.rb
blacklight-7.31.0 app/presenters/blacklight/rendering/microdata.rb
blacklight-7.30.0 app/presenters/blacklight/rendering/microdata.rb
blacklight-7.29.0 app/presenters/blacklight/rendering/microdata.rb