Class: Racket::Utils::Views::ViewRenderer
- Inherits:
-
Object
- Object
- Racket::Utils::Views::ViewRenderer
- Defined in:
- lib/racket/utils/views.rb
Overview
Class responsible for rendering a controller/view/layout combination.
Class Method Summary collapse
-
.render(controller, view, layout) ⇒ Array
Renders a page using the provided controller/view and layout combination and returns an response array that can be sent to the client.
Class Method Details
.render(controller, view, layout) ⇒ Array
Renders a page using the provided controller/view and layout combination and returns an response array that can be sent to the client.
178 179 180 181 182 183 |
# File 'lib/racket/utils/views.rb', line 178 def self.render(controller, view, layout) send_response( controller.response, view ? render_template(controller, view, layout) : controller.racket.action_result ) end |