Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (17 sloc) 354 Bytes
require 'sinatra'
set :partial_template_engine, :erb
before do
@menu = [
["index", uri("/")],
["blog", uri("http://blog.mnewton.com")],
["consult", uri("/consult")],
]
end
['/', '/index.html', "/portfolio"].each do |path|
get path do
erb :index
end
end
get '/consult/?' do
erb :consult
end