Created
December 22, 2012 10:27
-
-
Save anonymous/4358364 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'haml' | |
require 'sinatra/base' | |
class Application < Sinatra::Base | |
configure do | |
set :server, 'thin' | |
end | |
get '/' do | |
haml :index | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$LOAD_PATH.unshift(File.dirname(__FILE__)) | |
require 'application' | |
run Application |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'http://rubygems.org/' | |
gem 'sinatra', '~> 1.3.0' | |
gem 'thin' | |
gem 'haml' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%h1 Index |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!!! | |
%html | |
%head | |
%link{:rel => 'stylesheet', :type => 'text/css', :href => 'styles.css', :media => 'screen'} | |
%title Φαρμακείο Metropolis | |
%body | |
#wrapper | |
#header | |
#content | |
= yield | |
#footer | |
%p Panagiotis Atmatzidis - All rights (c) reserved 2012 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment