Class: Spirit::Render::Template
- Inherits:
-
Object
- Object
- Spirit::Render::Template
- Defined in:
- lib/spirit/render/templates/template.rb
Overview
Base class for all templates. Class classes should override the template
class attribute.
Direct Known Subclasses
Instance Method Summary collapse
-
#render(locals = {}) ⇒ Object
Renders the given problem using #view.
Instance Method Details
#render(locals = {}) ⇒ Object
Renders the given problem using #view.
15 16 17 |
# File 'lib/spirit/render/templates/template.rb', line 15 def render(locals={}) view.render self, locals end |