Class: JsRender::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/js_render/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



28
29
30
31
32
33
34
35
36
37
# File 'lib/js_render/configuration.rb', line 28

def initialize
  @base_path = 'app/assets/javascripts'
  @component_paths = ['/**/*']
  @component_suffix = '.js'
  @server_render_function = 'window.render*Server'
  @client_render_function = 'window.render*Client'
  @use_asset_pipeline = false
  @asset_finder_class = nil
  @should_server_render = true
end

Instance Attribute Details

#asset_finder_classObject

Returns the value of attribute asset_finder_class.



19
20
21
# File 'lib/js_render/configuration.rb', line 19

def asset_finder_class
  @asset_finder_class
end

#base_pathObject

Returns the value of attribute base_path.



19
20
21
# File 'lib/js_render/configuration.rb', line 19

def base_path
  @base_path
end

#client_render_functionObject

Returns the value of attribute client_render_function.



19
20
21
# File 'lib/js_render/configuration.rb', line 19

def client_render_function
  @client_render_function
end

#component_pathsObject

Returns the value of attribute component_paths.



19
20
21
# File 'lib/js_render/configuration.rb', line 19

def component_paths
  @component_paths
end

#component_suffixObject

Returns the value of attribute component_suffix.



19
20
21
# File 'lib/js_render/configuration.rb', line 19

def component_suffix
  @component_suffix
end

#server_render_functionObject

Returns the value of attribute server_render_function.



19
20
21
# File 'lib/js_render/configuration.rb', line 19

def server_render_function
  @server_render_function
end

#should_server_renderObject

Returns the value of attribute should_server_render.



19
20
21
# File 'lib/js_render/configuration.rb', line 19

def should_server_render
  @should_server_render
end

#use_asset_pipelineObject

Returns the value of attribute use_asset_pipeline.



19
20
21
# File 'lib/js_render/configuration.rb', line 19

def use_asset_pipeline
  @use_asset_pipeline
end