Module: Roda::RodaPlugins::BridgetownRoutes::ResponseMethods
- Defined in:
- bridgetown-routes/lib/roda/plugins/bridgetown_routes.rb
Instance Method Summary collapse
-
#_fake_resource_view(view_class:, roda_app:, bridgetown_site:) ⇒ Object
-
#_front_matter_line_count ⇒ Object
we need to know where the real template starts for good error reporting.
-
#_route_file_code ⇒ Object
template string provided, if available, by the saved code block.
Instance Method Details
#_fake_resource_view(view_class:, roda_app:, bridgetown_site:) ⇒ Object
167 168 169 170 171 172 173 174 175 176 177 |
# File 'bridgetown-routes/lib/roda/plugins/bridgetown_routes.rb', line 167 def _fake_resource_view(view_class:, roda_app:, bridgetown_site:) @_fake_resource_views ||= {} @_fake_resource_views[view_class] ||= view_class.new( # TODO: use a Stuct for better performance...? HashWithDotAccess::Hash.new({ data: {}, roda_app:, site: bridgetown_site, }) ) end |
#_front_matter_line_count ⇒ Object
we need to know where the real template starts for good error reporting
165 |
# File 'bridgetown-routes/lib/roda/plugins/bridgetown_routes.rb', line 165 def _front_matter_line_count = @_front_matter_line_count |
#_route_file_code ⇒ Object
template string provided, if available, by the saved code block
162 |
# File 'bridgetown-routes/lib/roda/plugins/bridgetown_routes.rb', line 162 def _route_file_code = @_route_file_code |