Class: Slippers::AnonymousTemplateNode
- Inherits:
-
Treetop::Runtime::SyntaxNode
- Object
- Treetop::Runtime::SyntaxNode
- Slippers::AnonymousTemplateNode
- Defined in:
- lib/engine/slippers_nodes.rb
Instance Method Summary collapse
- #apply_attribute_to_subtemplate(item, template_group) ⇒ Object
- #eval(object_to_render, template_group) ⇒ Object
Instance Method Details
#apply_attribute_to_subtemplate(item, template_group) ⇒ Object
85 86 87 |
# File 'lib/engine/slippers_nodes.rb', line 85 def apply_attribute_to_subtemplate(item, template_group) SlippersParser.new.parse(anonymous_template_words.to_s).eval(item, template_group) end |
#eval(object_to_render, template_group) ⇒ Object
81 82 83 |
# File 'lib/engine/slippers_nodes.rb', line 81 def eval(object_to_render, template_group) apply_attribute_to_subtemplate(object_to_render, template_group) end |