Classes and Modules
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 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={}, &_)
Require the render plugin, since it is required.
[show source]
# File lib/roda/plugins/autoforme.rb 9 def self.load_dependencies(app, opts={}, &_) 10 app.plugin :render 11 end