Class: RgGen::Core::OutputBase::TemplateEngine
- Includes:
- Singleton
- Defined in:
- lib/rggen/core/output_base/template_engine.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#process_template(context, path = nil, caller_location = nil) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/rggen/core/output_base/template_engine.rb', line 9 def process_template(context, path = nil, caller_location = nil) unless path caller_location ||= caller_locations(1, 1).first path = File.ext(caller_location.path, file_extension.to_s) end render(context, template(path)) end |