require 'dm-timestamps'
require 'dm-migrations'
require 'rqr'
+require 'rdiscount'
#config
set :haml, :format => :html5
get '/:grito' do
@grito = Grito.first(:id => params[:grito].to_i(36))
raise "Invalid Post" if @grito.nil?
+
+ @markdown = RDiscount.new(@grito.text)
+
haml :grito
end