Class: Slippers::AnonymousTemplateNode

Inherits:
Treetop::Runtime::SyntaxNode
  • Object
show all
Defined in:
lib/engine/slippers_nodes.rb

Instance Method Summary collapse

Instance Method Details

#apply_attribute_to_subtemplate(item, template_group) ⇒ Object



73
74
75
# File 'lib/engine/slippers_nodes.rb', line 73

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



69
70
71
# File 'lib/engine/slippers_nodes.rb', line 69

def eval(object_to_render, template_group)
  apply_attribute_to_subtemplate(object_to_render, template_group)
end