class Thymeleaf::Configuration

Attributes

dialects[RW]
parser[RW]
template[RW]

Public Class Methods

new() click to toggle source
# File lib/thymeleaf/configuration.rb, line 24
def initialize
  self.dialects = Dialects.new
  self.template = TemplateResolver.new
  self.parser   = ParseOptions.new
  add_dialect DefaultDialect
end

Public Instance Methods

add_dialect(*args) click to toggle source
# File lib/thymeleaf/configuration.rb, line 31
def add_dialect(*args)
  dialects.add_dialect(*args)
end
clear_dialects() click to toggle source
# File lib/thymeleaf/configuration.rb, line 35
def clear_dialects
  dialects.clear_dialects
end
template_uri(name) click to toggle source
# File lib/thymeleaf/configuration.rb, line 39
def template_uri(name)
  template.get_template(name)
end