Module: Roda::RodaPlugins::BridgetownRoutes

Defined in:
lib/roda/plugins/bridgetown_routes.rb

Defined Under Namespace

Modules: InstanceMethods, ResponseMethods

Class Method Summary collapse

Class Method Details

.configure(app, _opts = {}) ⇒ Object



27
28
29
30
31
32
# File 'lib/roda/plugins/bridgetown_routes.rb', line 27

def self.configure(app, _opts = {})
  return unless app.opts[:bridgetown_site].nil?

  raise "Roda app failure: the bridgetown_ssr plugin must be registered before " \
        "bridgetown_routes"
end

.load_dependencies(app) ⇒ Object



20
21
22
23
24
25
# File 'lib/roda/plugins/bridgetown_routes.rb', line 20

def self.load_dependencies(app)
  app.plugin :slash_path_empty # now /hello and /hello/ are both matched
  app.plugin :placeholder_string_matchers
  app.plugin :flash
  app.plugin :route_csrf
end