Sha256: 5b4b30d5b24d69e9b785fb7ca024fa43ca8960a0ad2dd6168a52452bf7464fa1

Contents?: true

Size: 412 Bytes

Versions: 13

Compression:

Stored size: 412 Bytes

Contents

module QuicCms
  module LayoutHelper
    def title(page_title, show_title = true)
      content_for(:title) { h(page_title.to_s) }
      @show_title = show_title
    end

    def show_title?
      @show_title
    end

    def stylesheet(*args)
      content_for(:head) { stylesheet_link_tag(*args) }
    end

    def javascript(*args)
      content_for(:head) { javascript_include_tag(*args) }
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
quic_cms-0.1.4 app/helpers/quic_cms/layout_helper.rb
quic_cms-0.1.3 app/helpers/quic_cms/layout_helper.rb
quic_cms-0.1.2 app/helpers/quic_cms/layout_helper.rb
quic_cms-0.1.1 app/helpers/quic_cms/layout_helper.rb
quic_cms-0.1.0 app/helpers/quic_cms/layout_helper.rb
quic_cms-0.0.9 app/helpers/quic_cms/layout_helper.rb
quic_cms-0.0.8 app/helpers/quic_cms/layout_helper.rb
quic_cms-0.0.7 app/helpers/quic_cms/layout_helper.rb
quic_cms-0.0.6 app/helpers/quic_cms/layout_helper.rb
quic_cms-0.0.5 app/helpers/quic_cms/layout_helper.rb
quic_cms-0.0.4 app/helpers/quic_cms/layout_helper.rb
quic_cms-0.0.3 app/helpers/quic_cms/layout_helper.rb
quic_cms-0.0.2 app/helpers/quic_cms/layout_helper.rb