Module: Thymeleaf

Defined in:
lib/thymeleaf.rb,
lib/thymeleaf/parser.rb,
lib/thymeleaf/version.rb,
lib/thymeleaf/dialects.rb,
lib/thymeleaf/template.rb,
lib/thymeleaf/processor.rb,
lib/thymeleaf/configuration.rb,
lib/thymeleaf/template_engine.rb

Defined Under Namespace

Modules: Processor Classes: Configuration, Dialects, NullProcessor, Parser, Template, TemplateEngine

Constant Summary collapse

VERSION =
"0.1.3"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



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

def configuration
  @configuration
end

Class Method Details

.configure(&block) ⇒ Object

TODO: Replace accessor with getter/setter?



15
16
17
18
# File 'lib/thymeleaf/configuration.rb', line 15

def self.configure(&block)
  self.configuration ||= Configuration.new
  block.call configuration if block_given?
end