Sha256: dd9e883f973259641c327b7b87842df655a5e36bf99a45352989255ebde3aca7

Contents?: true

Size: 452 Bytes

Versions: 9

Compression:

Stored size: 452 Bytes

Contents

# frozen_string_literal: true

require 'action_view'

# An implementation of the RichTextRenderer that uses ActionView helpers to implement content_tag and concat.
class WCC::Contentful::ActionViewRichTextRenderer < WCC::Contentful::RichTextRenderer
  include ActionView::Helpers::TagHelper
  include ActionView::Helpers::TextHelper
  include ActionView::Context

  # TODO: use ActionView view context to render ERB templates for embedded entries?
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
wcc-contentful-1.7.2 lib/wcc/contentful/action_view_rich_text_renderer.rb
wcc-contentful-1.7.1 lib/wcc/contentful/action_view_rich_text_renderer.rb
wcc-contentful-1.7.0 lib/wcc/contentful/action_view_rich_text_renderer.rb
wcc-contentful-1.6.2 lib/wcc/contentful/action_view_rich_text_renderer.rb
wcc-contentful-1.6.1 lib/wcc/contentful/action_view_rich_text_renderer.rb
wcc-contentful-1.6.0 lib/wcc/contentful/action_view_rich_text_renderer.rb
wcc-contentful-1.5.1 lib/wcc/contentful/action_view_rich_text_renderer.rb
wcc-contentful-1.5.0 lib/wcc/contentful/action_view_rich_text_renderer.rb
wcc-contentful-1.5.0.rc1 lib/wcc/contentful/action_view_rich_text_renderer.rb