Sha256: ccb63023c44d8aed141ebd1247ed1d87689e5b76e928928ed6b8b4deb12a9ad9

Contents?: true

Size: 411 Bytes

Versions: 2

Compression:

Stored size: 411 Bytes

Contents

module Refinery
  module Pages
    # A type of SectionPresenter which knows how to render a section which displays
    # a title. These are much like normal sections except they are wrapped in
    # a h1 tag rather than a div.
    class TitleSectionPresenter < SectionPresenter
      private

        def wrap_content_in_tag(content)
          content_tag(:h1, content, :id => id)
        end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
refinerycms-pages-2.0.1 lib/refinery/pages/title_section_presenter.rb
refinerycms-pages-2.0.0 lib/refinery/pages/title_section_presenter.rb