Module: Roda::RodaPlugins::BridgetownSSR

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

Defined Under Namespace

Modules: InstanceMethods

Class Method Summary collapse

Class Method Details

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



14
15
16
17
18
# File 'lib/roda/plugins/bridgetown_ssr.rb', line 14

def self.configure(app, _opts = {}, &block)
  app.include Bridgetown::Filters::URLFilters
  app.opts[:bridgetown_site] =
    Bridgetown::Site.start_ssr!(loaders_manager: Bridgetown::Rack.loaders_manager, &block)
end