Sha256: 940c53080c83e7513c548cd38edec765ccc5333d658235e440b2cc31b36c63ce

Contents?: true

Size: 713 Bytes

Versions: 3

Compression:

Stored size: 713 Bytes

Contents

module Rbexy
  class Configuration
    attr_accessor :element_resolver
    attr_accessor :template_paths
    attr_accessor :enable_context
    attr_accessor :debug
    attr_accessor :component_rendering_templates
    attr_accessor :transforms

    def template_paths
      @template_paths ||= []
    end

    def element_resolver
      @element_resolver ||= ComponentResolver.new
    end

    def transforms
      @transforms ||= ASTTransformer.new
    end

    def component_rendering_templates
      @component_rendering_templates ||= {
        children: "{capture{%{children};nil}}",
        component: "::%{component_class}.new(%{view_context},%{kwargs}).render_in%{children_block}"
      }
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rbexy-2.0.0.rc5 lib/rbexy/configuration.rb
rbexy-2.0.0.rc4 lib/rbexy/configuration.rb
rbexy-2.0.0.rc3 lib/rbexy/configuration.rb