require 'cgi' class CgiPlugin < Plugin def cgi(m, p) m.reply CGI::parse(p[:string]).inspect end end CgiPlugin.new.map('cgi :string')