Class: FragmentProcessor
- Inherits:
-
Object
- Object
- FragmentProcessor
- Includes:
- Thymeleaf::Processor
- Defined in:
- lib/thymeleaf/dialects/default/processors/fragment.rb
Instance Method Summary collapse
Methods included from Thymeleaf::Processor
#evaluate_in_context, #load_template, #subprocess_node
Instance Method Details
#call(node: nil, attribute: nil, context: nil, **_) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/thymeleaf/dialects/default/processors/fragment.rb', line 4 def call(node:nil, attribute:nil, context:nil, **_) fragment_name = EvalExpression.parse(context, attribute.value) context.root.set_private DefaultDialect::context_fragment_var(fragment_name), node attribute.unlink end |