Sha256: 384475a05a9b31c8f4acef6ed79f658d98abecedf2a8bab4a7224aae79330758
Contents?: true
Size: 464 Bytes
Versions: 9
Compression:
Stored size: 464 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 include ActionView::Helpers::SanitizeHelper private def wrap_content_in_tag(content) content_tag(:h1, sanitize(content), :id => id) end end end end
Version data entries
9 entries across 9 versions & 1 rubygems