Module: Roda::RodaPlugins::BridgetownRoutes::ResponseMethods
- Defined in:
- lib/roda/plugins/bridgetown_routes.rb
Instance Method Summary collapse
- #_fake_resource_view(view_class:, roda_app:, bridgetown_site:) ⇒ Object
-
#_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
80 81 82 83 84 85 86 87 88 89 90 |
# File 'lib/roda/plugins/bridgetown_routes.rb', line 80 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: roda_app, site: bridgetown_site, }) ) end |
#_route_file_code ⇒ Object
template string provided, if available, by the saved code block
76 77 78 |
# File 'lib/roda/plugins/bridgetown_routes.rb', line 76 def _route_file_code @_route_file_code end |