Sha256: 1da1d16eebfd599dded858bdf568cfb1375b407adcc6dcca345ed7c270ca515a

Contents?: true

Size: 581 Bytes

Versions: 39

Compression:

Stored size: 581 Bytes

Contents

module PandaCms
  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

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
panda_cms-0.6.3 app/helpers/panda_cms/theme_helper.rb
panda_cms-0.6.2 app/helpers/panda_cms/theme_helper.rb
panda_cms-0.6.1 app/helpers/panda_cms/theme_helper.rb
panda_cms-0.6.0 app/helpers/panda_cms/theme_helper.rb
panda_cms-0.5.10 app/helpers/panda_cms/theme_helper.rb
panda_cms-0.5.9 app/helpers/panda_cms/theme_helper.rb
panda_cms-0.5.8 app/helpers/panda_cms/theme_helper.rb
panda_cms-0.5.7 app/helpers/panda_cms/theme_helper.rb
panda_cms-0.5.6 app/helpers/panda_cms/theme_helper.rb
panda_cms-0.5.5 app/helpers/panda_cms/theme_helper.rb
panda_cms-0.5.4 app/helpers/panda_cms/theme_helper.rb
panda_cms-0.5.3 app/helpers/panda_cms/theme_helper.rb
panda_cms-0.5.2 app/helpers/panda_cms/theme_helper.rb
panda_cms-0.5.1 app/helpers/panda_cms/theme_helper.rb
panda_cms-0.5.0 app/helpers/panda_cms/theme_helper.rb
panda_cms-0.3.15 app/helpers/panda_cms/theme_helper.rb
panda_cms-0.3.14 app/helpers/panda_cms/theme_helper.rb
panda_cms-0.3.13 app/helpers/panda_cms/theme_helper.rb
panda_cms-0.3.12 app/helpers/panda_cms/theme_helper.rb
panda_cms-0.3.11 app/helpers/panda_cms/theme_helper.rb