Sha256: 8eb902cbba0dd64ab61c01c8798b0147435bc45e48a7f8a345d8817efee05b07

Contents?: true

Size: 799 Bytes

Versions: 10

Compression:

Stored size: 799 Bytes

Contents

# frozen_string_literal: true

require_relative '../../components/ccs/header'

module CCS
  module FrontendHelpers
    module CCSFrontend
      # = CCS Header
      #
      # This helper is used for generating the header component from the
      # {https://github.com/tim-s-ccs/ts-ccs-frontend/tree/main/src/ccs/components/header CCS - Components - Header}

      module Header
        # Generates the HTML for the CCS Header component
        #
        # @param (see CCS::Components::CCS::Header#initialize)
        #
        # @option (see CCS::Components::CCS::Header#initialize)
        #
        # @return (see CCS::Components::CCS::Header#render)

        def ccs_header(**options)
          Components::CCS::Header.new(context: self, **options).render
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ccs-frontend_helpers-0.3.0 lib/ccs/frontend_helpers/ccs_frontend/header.rb
ccs-frontend_helpers-0.2.0 lib/ccs/frontend_helpers/ccs_frontend/header.rb
ccs-frontend_helpers-0.1.2 lib/ccs/frontend_helpers/ccs_frontend/header.rb
ccs-frontend_helpers-0.1.1 lib/ccs/frontend_helpers/ccs_frontend/header.rb
ccs-frontend_helpers-0.1.1.rc.1 lib/ccs/frontend_helpers/ccs_frontend/header.rb
ccs-frontend_helpers-0.1.0.rc.7 lib/ccs/frontend_helpers/ccs_frontend/header.rb
ccs-frontend_helpers-0.1.0.rc.6 lib/ccs/frontend_helpers/ccs_frontend/header.rb
ccs-frontend_helpers-0.1.0.rc.5 lib/ccs/frontend_helpers/ccs_frontend/header.rb
ccs-frontend_helpers-0.1.0.rc.4 lib/ccs/frontend_helpers/ccs_frontend/header.rb
ccs-frontend_helpers-0.1.0.rc.3 lib/ccs/frontend_helpers/ccs_frontend/header.rb