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?
- haml :grito
+
+ @markdown = RDiscount.new(@grito.text)
+
+ haml :grito, :layout => :layoutmini
end
error do