lib/wunderbar/cgi-methods.rb in wunderbar-0.8.0 vs lib/wunderbar/cgi-methods.rb in wunderbar-0.8.1

- old
+ new

@@ -113,5 +113,21 @@ # post specific content (produces output) def $cgi.post! &block html!(&block) if $HTTP_POST end + +# canonical interface +module Wunderbar + def self.html(*args, &block) + $cgi.html!(*args, &block) + end + + def self.json(*args, &block) + $cgi.json!(*args, &block) + end + + def self.text(*args, &block) + $cgi.text!(*args, &block) + end +end +