Module: MustacheRender

Defined in:
lib/mustache_render.rb,
lib/mustache_render/ables.rb,
lib/mustache_render/utils.rb,
lib/mustache_render/config.rb,
lib/mustache_render/errors.rb,
lib/mustache_render/version.rb,
lib/mustache_render/mustache.rb,
lib/mustache_render/populator.rb,
lib/mustache_render/mustache/data.rb,
lib/mustache_render/mustache/parser.rb,
lib/mustache_render/mustache/context.rb,
lib/mustache_render/utils/array_util.rb,
lib/mustache_render/ables/render_able.rb,
lib/mustache_render/mustache/template.rb,
lib/mustache_render/mustache/generator.rb,
lib/mustache_render/utils/fields_filter_util.rb,
lib/mustache_render/utils/action_controller_util.rb,
lib/mustache_render/errors/mustache_template_miss_error.rb

Defined Under Namespace

Modules: ActionControllerUtil, ActionView, RenderAble Classes: ArrayUtil, Config, FieldsFilterUtil, Mustache, MustacheTemplateMissError, Populator

Constant Summary collapse

VERSION_NUMBERS =
[
  VERSION_MAJOR = 0,
  VERSION_MINOR = 0,
  VERSION_BUILD = 25,
]
VERSION =
VERSION_NUMBERS.join(".")

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configObject

Returns the value of attribute config.



4
5
6
# File 'lib/mustache_render/config.rb', line 4

def config
  @config
end

Class Method Details

.configure {|self.config ||= Config.new| ... } ⇒ Object

Yields:



10
11
12
# File 'lib/mustache_render/config.rb', line 10

def configure
  yield self.config ||= Config.new
end

.loggerObject



10
11
12
# File 'lib/mustache_render.rb', line 10

def self.logger
  MustacheRender.config.logger
end