Class: RgGen::OutputBase::TemplateEngine
- Inherits:
-
Object
- Object
- RgGen::OutputBase::TemplateEngine
- Includes:
- Singleton
- Defined in:
- lib/rggen/output_base/template_engine.rb
Direct Known Subclasses
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 |