Sha256: 84fabd4ee59b8884953d07d67b21f6b406fa408a2da7e0bdb0da3beb6dfdd441
Contents?: true
Size: 427 Bytes
Versions: 17
Compression:
Stored size: 427 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 && html? 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
17 entries across 17 versions & 2 rubygems