Module: MustacheRender
- Defined in:
- lib/mustache_render.rb,
lib/mustache_render/config.rb,
lib/mustache_render/adapter.rb,
lib/mustache_render/version.rb,
lib/mustache_render/mustache.rb,
lib/mustache_render/mustache/data.rb,
lib/mustache_render/populator_base.rb,
lib/mustache_render/mustache/parser.rb,
lib/mustache_render/mustache/context.rb,
lib/mustache_render/mustache/template.rb,
lib/mustache_render/mustache/generator.rb,
lib/generators/mustache_render/install_generator.rb
Overview
Defined Under Namespace
Modules: CoreExt
Classes: Adapter, Config, InstallGenerator, Mustache, PopulatorBase
Constant Summary
collapse
- VERSION_NUMBERS =
[
VERSION_MAJOR = 0,
VERSION_MINOR = 0,
VERSION_BUILD = 21,
]
- VERSION =
VERSION_NUMBERS.join(".")
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.config ⇒ Object
Returns the value of attribute config.
4
5
6
|
# File 'lib/mustache_render/config.rb', line 4
def config
@config
end
|
Class Method Details
.adapter ⇒ Object
7
8
9
|
# File 'lib/mustache_render/adapter.rb', line 7
def adapter
@adapter ||= Adapter.new
end
|
11
12
13
|
# File 'lib/mustache_render/adapter.rb', line 11
def adapter_configure
yield(@adapter ||= Adapter.new)
end
|
6
7
8
9
|
# File 'lib/mustache_render/config.rb', line 6
def configure
yield self.config ||= Config.new
self.config.apply!
end
|