lib/showoff.rb in showoff-0.0.4 vs lib/showoff.rb in showoff-0.0.5
- old
+ new
@@ -144,7 +144,12 @@
data += process_markdown(fname, File.read(f))
end
end
data
end
+
+ post '/code' do
+ rv = eval(params[:code])
+ return rv.to_s
+ end
end