Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 22 lines (18 sloc) 437 Bytes
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_folder, 'public'
set :haml, {:format => :html5} # default Haml format is :xhtml
# Application routes
get '/' do
haml :index, :layout => :'layouts/application'
get '/about' do
haml :about, :layout => :'layouts/page'
Something went wrong with that request. Please try again.