module Roda::RodaPlugins::Chunked

def self.configure(app, opts=OPTS)

:headers :: Set default additional headers to use when calling view
:chunk_by_default :: chunk all calls to view by default
Set plugin specific options. Options:
def self.configure(app, opts=OPTS)
  app.opts[:chunk_by_default] = opts[:chunk_by_default]
  app.opts[:force_chunked_encoding] = opts[:force_chunked_encoding]
  if opts[:headers]
    app.opts[:chunk_headers] = (app.opts[:chunk_headers] || {}).merge(opts[:headers]).freeze
  end
end

def self.load_dependencies(app, opts=OPTS)

Depend on the render plugin
def self.load_dependencies(app, opts=OPTS)
  app.plugin :render
end