Sha256: cf2bafc264fd64609174dc25717566dc4ae6ce523f2126ce2ca34985d581e315

Contents?: true

Size: 901 Bytes

Versions: 1

Compression:

Stored size: 901 Bytes

Contents

require_relative 'renderers/command_line_renderer'
require_relative 'renderers/special_paragraph_renderer'
require_relative 'renderers/columns_renderer'
require_relative 'renderers/content_with_caption_renderer'

module Parade

  module SlidePostRenderers
    extend self

    def register(renderer)
      renderers.push renderer
    end

    def renderers
      @renderers ||= []
    end
  end

  SlidePostRenderers.register Renderers::SpecialParagraphRenderer
  SlidePostRenderers.register Renderers::CommandLineRenderer
  SlidePostRenderers.register Renderers::ColumnsRenderer.new(css_class: 'columns',
    html_element: "h2", segments: 12)
  SlidePostRenderers.register Renderers::ColumnsRenderer.new(css_class: 'comparison',
    html_element: "h2", segments: 12)
  SlidePostRenderers.register Renderers::ContentWithCaptionRenderer.new(css_class: 'content-with-caption',
  html_element: "h2")

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
parade-0.10.2 lib/parade/slide_post_renderers.rb