Class: RgGen::OutputBase::TemplateEngine

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/rggen/output_base/template_engine.rb

Direct Known Subclasses

ERBEngine

Instance Method Summary collapse

Instance Method Details

#process_template(context, path = nil, call_info = nil) ⇒ Object



6
7
8
9
# File 'lib/rggen/output_base/template_engine.rb', line 6

def process_template(context, path = nil, call_info = nil)
  path  ||= extract_template_path(call_info || caller[0])
  render(context, templates[path])
end