Module: TemplateInheritance
- Defined in:
- lib/template-inheritance/adapters/padrino.rb,
lib/template-inheritance.rb,
lib/template-inheritance/helpers.rb,
lib/template-inheritance/exts/tilt.rb
Overview
TODO: It’d be nice to share the logger.
Defined Under Namespace
Modules: Rendering, TemplateHelpers, TiltExtensions
Classes: SimpleLogger, Template, TemplateNotFound
Constant Summary
collapse
- @@development =
true
Class Method Summary
collapse
Class Method Details
.development=(boolean) ⇒ Object
9
10
11
|
# File 'lib/template-inheritance.rb', line 9
def self.development=(boolean)
@@development = boolean
end
|
.development? ⇒ Boolean
13
14
15
|
# File 'lib/template-inheritance.rb', line 13
def self.development?
@@development
end
|
.logger ⇒ Object
17
18
19
|
# File 'lib/template-inheritance.rb', line 17
def self.logger
@@logger ||= SimpleLogger.new
end
|
.logger=(logger) ⇒ Object
21
22
23
|
# File 'lib/template-inheritance.rb', line 21
def self.logger=(logger)
@@logger = logger
end
|