Module: Roda::RodaPlugins::Inversion::RequestMethods
- Defined in:
- lib/roda/plugins/inversion.rb
Instance Method Summary collapse
-
#block_result_body(result) ⇒ Object
Hook block results for template rendering.
Instance Method Details
#block_result_body(result) ⇒ Object
Hook block results for template rendering.
157 158 159 160 161 162 163 164 165 166 167 168 169 170 |
# File 'lib/roda/plugins/inversion.rb', line 157 def block_result_body( result ) if ( template = self.extract_template_from_result( result ) ) # Wrap the template in a layout if there is one template = self.wrap_in_layout( template ) # Set some default stuff on the top-level template self.set_common_attributes( template ) return template.render else super end end |