Class: Sidewalk::TemplateHandlers::Base
- Inherits:
-
Object
- Object
- Sidewalk::TemplateHandlers::Base
- Defined in:
- lib/sidewalk/template_handlers/base.rb
Overview
Base class for TemplateHandlers.
This currently just defines an interface - see ErbHandler for an example.
Instances of this class may be re-used between requests. Anything request-specific needs to go in the #render method.
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(path) ⇒ Base
constructor
A new instance of the controller.
-
#render(controller) ⇒ String
Actually render a template.
Constructor Details
#initialize(path) ⇒ Base
A new instance of the controller.
26 27 |
# File 'lib/sidewalk/template_handlers/base.rb', line 26 def initialize path end |
Instance Method Details
#render(controller) ⇒ String
Actually render a template.
19 20 21 |
# File 'lib/sidewalk/template_handlers/base.rb', line 19 def render controller raise NotImplementedError.new end |