Class: Dolphy::TemplateEngine
- Inherits:
-
Object
- Object
- Dolphy::TemplateEngine
- Includes:
- TemplateEngines
- Defined in:
- lib/dolphy/template_engine.rb
Instance Method Summary collapse
-
#initialize(template_engine, view_path) ⇒ TemplateEngine
constructor
A new instance of TemplateEngine.
- #render(template_name, locals) ⇒ Object
Constructor Details
#initialize(template_engine, view_path) ⇒ TemplateEngine
Returns a new instance of TemplateEngine.
9 10 11 12 |
# File 'lib/dolphy/template_engine.rb', line 9 def initialize(template_engine, view_path) @template_engine = template_engine @view_path = view_path end |
Instance Method Details
#render(template_name, locals) ⇒ Object
14 15 16 |
# File 'lib/dolphy/template_engine.rb', line 14 def render(template_name, locals) template_engine.render(template_name, locals, view_path) end |