Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 22 lines (18 sloc) 0.43 kb
require 'rubygems'
require 'sinatra'
require 'haml'
# Helpers
require './lib/render_partial'
# Set Sinatra variables
set :app_file, __FILE__
set :root, File.dirname(__FILE__)
set :views, 'views'
set :public, 'public'
set :haml, {:format => :html5} # default Haml format is :xhtml
# Application routes
get '/' do
haml :index, :layout => :'layouts/application'
end
get '/about' do
haml :about, :layout => :'layouts/page'
end
Jump to Line
Something went wrong with that request. Please try again.