Class: DefaultProcessor

Inherits:
Object
  • Object
show all
Includes:
Thymeleaf::Processor
Defined in:
lib/thymeleaf/dialects/default/processors/default.rb

Instance Method Summary collapse

Methods included from Thymeleaf::Processor

#evaluate_in_context, #load_template, #subprocess_node

Instance Method Details

#call(key: nil, node: nil, attribute: nil, context: nil) ⇒ Object



4
5
6
7
# File 'lib/thymeleaf/dialects/default/processors/default.rb', line 4

def call(key:nil, node:nil, attribute:nil, context:nil)
  node[key] = EvalExpression.parse(context, attribute.value)
  attribute.unlink
end