module Roda::RodaPlugins::AutoForme

  1. lib/roda/plugins/autoforme.rb

Methods

Public Class

  1. configure
  2. load_dependencies

Public Class methods

configure (app, opts={}, &block)

If a block is given, automatically setup AutoForme using the options and block.

[show source]
# File lib/roda/plugins/autoforme.rb, line 14
def self.configure(app, opts={}, &block)
  app.instance_exec do
    @autoforme_routes ||= {}
    if block
      autoforme(opts, &block)
    end
  end
end
load_dependencies (app, opts={})

Require the render plugin, since it is required.

[show source]
# File lib/roda/plugins/autoforme.rb, line 8
def self.load_dependencies(app, opts={})
  app.plugin :render
end