middleman/vendor/sinatra-maruku/examples/mapp.rb

16 lines
249 B
Ruby
Raw Normal View History

2009-08-12 22:04:58 +02:00
require 'rubygems'
require 'sinatra/base'
require 'sinatra/maruku'
require 'rack'
class MApp < Sinatra::Base
helpers Sinatra::Maruku
get '/' do
maruku "## hello form modular app"
end
end
Rack::Handler::Thin.run MApp.new, :Port => 4567