Sha256: 65e09827f3557a3c8b39e2448c7c2c48c2976239779c084ec219814e0d2d1eed

Contents?: true

Size: 983 Bytes

Versions: 12

Compression:

Stored size: 983 Bytes

Contents

# frozen_string_literal: true

require 'phlex-rails'

module Proscenium
  class Phlex < ::Phlex::HTML
    extend ActiveSupport::Autoload

    autoload :Page
    autoload :CssModules
    autoload :ReactComponent

    extend ::Phlex::Rails::HelperMacros
    include ::Phlex::Rails::Helpers::JavaScriptIncludeTag
    include ::Phlex::Rails::Helpers::StyleSheetLinkTag
    include Proscenium::SourcePath
    include CssModules

    define_output_helper :side_load_stylesheets # deprecated
    define_output_helper :include_stylesheets
    define_output_helper :side_load_javascripts # deprecated
    define_output_helper :include_javascripts
    define_output_helper :declare_lazy_scripts

    module Sideload
      def before_template
        Proscenium::SideLoad.sideload_inheritance_chain self

        super
      end
    end

    class << self
      attr_accessor :abstract_class

      def inherited(child)
        child.prepend Sideload

        super
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
proscenium-0.11.0.pre.9-x86_64-linux lib/proscenium/phlex.rb
proscenium-0.11.0.pre.9-aarch64-linux lib/proscenium/phlex.rb
proscenium-0.11.0.pre.9-arm64-darwin lib/proscenium/phlex.rb
proscenium-0.11.0.pre.9-x86_64-darwin lib/proscenium/phlex.rb
proscenium-0.11.0.pre.8-x86_64-linux lib/proscenium/phlex.rb
proscenium-0.11.0.pre.8-aarch64-linux lib/proscenium/phlex.rb
proscenium-0.11.0.pre.8-arm64-darwin lib/proscenium/phlex.rb
proscenium-0.11.0.pre.8-x86_64-darwin lib/proscenium/phlex.rb
proscenium-0.11.0.pre.7-x86_64-linux lib/proscenium/phlex.rb
proscenium-0.11.0.pre.7-aarch64-linux lib/proscenium/phlex.rb
proscenium-0.11.0.pre.7-arm64-darwin lib/proscenium/phlex.rb
proscenium-0.11.0.pre.7-x86_64-darwin lib/proscenium/phlex.rb