Sha256: 9bb65ce2908f17ea863e2fd21ecfa0b999602e95f785129df61780c10029b4bb

Contents?: true

Size: 964 Bytes

Versions: 20

Compression:

Stored size: 964 Bytes

Contents

# frozen_string_literal: true

require 'phlex-rails'

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

    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

20 entries across 20 versions & 1 rubygems

Version Path
proscenium-0.11.0-x86_64-linux lib/proscenium/phlex.rb
proscenium-0.11.0-aarch64-linux lib/proscenium/phlex.rb
proscenium-0.11.0-arm64-darwin lib/proscenium/phlex.rb
proscenium-0.11.0-x86_64-darwin lib/proscenium/phlex.rb
proscenium-0.11.0.pre.13-x86_64-linux lib/proscenium/phlex.rb
proscenium-0.11.0.pre.13-aarch64-linux lib/proscenium/phlex.rb
proscenium-0.11.0.pre.13-arm64-darwin lib/proscenium/phlex.rb
proscenium-0.11.0.pre.13-x86_64-darwin lib/proscenium/phlex.rb
proscenium-0.11.0.pre.12-x86_64-linux lib/proscenium/phlex.rb
proscenium-0.11.0.pre.12-aarch64-linux lib/proscenium/phlex.rb
proscenium-0.11.0.pre.12-arm64-darwin lib/proscenium/phlex.rb
proscenium-0.11.0.pre.12-x86_64-darwin lib/proscenium/phlex.rb
proscenium-0.11.0.pre.11-x86_64-linux lib/proscenium/phlex.rb
proscenium-0.11.0.pre.11-aarch64-linux lib/proscenium/phlex.rb
proscenium-0.11.0.pre.11-arm64-darwin lib/proscenium/phlex.rb
proscenium-0.11.0.pre.11-x86_64-darwin lib/proscenium/phlex.rb
proscenium-0.11.0.pre.10-x86_64-linux lib/proscenium/phlex.rb
proscenium-0.11.0.pre.10-aarch64-linux lib/proscenium/phlex.rb
proscenium-0.11.0.pre.10-arm64-darwin lib/proscenium/phlex.rb
proscenium-0.11.0.pre.10-x86_64-darwin lib/proscenium/phlex.rb