An entry in the ShortestWikiContest. WyRiki is 20 lines of unreadable Ruby code. The design was shamelessly stolen from the WyPy entry. You can see the code here: http://onestepback.org/misc/wyriki.txt. There is a live version at http://onestepback.org/cgi-bin/wyriki. The author confesses to writing it late at night when his better judgment was impaired. Plus, leaving off the final "i" in WyRiki gives a phonetic spelling of the author's name (which is the real reason he wrote it). -- JimWeirich ''Please add'' wrap=soft ''or'' wrap=virtual ''to the textarea definition.'' ---- This source is from http://web.archive.org/web/20070222033318/http://onestepback.org/misc/wyriki.txt -- MarkusSrank #!/usr/local/bin/ruby require 'cgi';def load(n) File.exist?("w/"+n) ? File.read("w/"+n) : '' end def fs(s) s.gsub!(/\r/,'');s.gsub!(/^---/, "
") s.gsub!(/(^|[^A-Za-z0-9?])(([A-Z][a-z]+){2,})/) {$1+(File.exist?('w/'+$2) ? %{#{$2}}:$2+%[?]+ %[])};s.gsub!(/(ht|f)tp:[^<>"\s]+/){ %{#{$&}}};s end def pg(m,n) {'get'=>%{
#{fs(load(n))||n}},'edit'=> %{
},'find'=>"