Sha256: 61ea7cecc149094f37e68a304409f072486fdf1445b610f940db0b4835095cac

Contents?: true

Size: 621 Bytes

Versions: 3

Compression:

Stored size: 621 Bytes

Contents

module Panda
  module CMS
    module ThemeHelper
      # TODO: Move these into one method?
      def h1(text, icon: "", additional_styles: "")
        render HeadingComponent.new(text: text, level: 1, icon: icon, additional_styles: additional_styles)
      end

      def h2(text, icon: "", additional_styles: "")
        render HeadingComponent.new(text: text, level: 2, icon: icon, additional_styles: additional_styles)
      end

      def h3(text, icon: "", additional_styles: "")
        render HeadingComponent.new(text: text, level: 3, icon: icon, additional_styles: additional_styles)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
panda-cms-0.7.3 app/helpers/panda/cms/theme_helper.rb
panda-cms-0.7.2 app/helpers/panda/cms/theme_helper.rb
panda-cms-0.7.0 app/helpers/panda/cms/theme_helper.rb