Over a million developers have joined DZone.

Batsman's 5-Line Wiki

Drop the code below in a file called w7.cgi. You’ll need to give executable permission for the web server to execute the script and write permission for the web server for the whole directory. (chmod 755 wiki/w7.cgi; chown www wiki).

#!/usr/bin/ruby -rcgi
H,B=%w'HomePage w7.cgi?n=%s';c=CGI.new'html4';n,d=c['n']!=''?c['n']:H,c['d'];t=`
cat #{n}`;d!=''&&`echo #{t=CGI.escapeHTML(d)} >#{n}`;c.instance_eval{out{h1{n}+

Source: http://ruby-talk.org/cgi-bin/scat.rb/ruby/ruby-talk/122787

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}