module Roda::RodaPlugins::AutoForme

Public Class Methods

configure(app, opts={}, &block) click to toggle source

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

   # File lib/roda/plugins/autoforme.rb
15 def self.configure(app, opts={}, &block)
16   app.instance_exec do
17     @autoforme_routes ||= {}
18     if block
19       autoforme(opts, &block)
20     end
21   end
22 end
load_dependencies(app, opts={}) click to toggle source

Require the render plugin, since it is required.

   # File lib/roda/plugins/autoforme.rb
 9 def self.load_dependencies(app, opts={})
10   app.plugin :render
11 end