Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
# use PathPrefix Middleware if :path_prefix is set in Merb::Config if prefix = ::Merb::Config[:path_prefix] use Merb::Rack::PathPrefix, prefix end # comment this out if you are running merb behind a load balancer # that serves static files use Merb::Rack::Static, Merb.dir_for(:public) # Trivial rack app rack_app = Proc.new do |env| # env here has all the headers you would expect [200, {"Content-Type"=>"text/html"}, "hello world!"] end # this is our main merb application #run Merb::Rack::Application.new run rack_app
This paste will be private.
From the Design Piracy series on my blog: