Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Initial commit

  • Loading branch information...
commit 54ed275a3b456eb0fddf079468393a41a32224eb 0 parents
@env authored
BIN  .DS_Store
Binary file not shown
4 Gemfile
@@ -0,0 +1,4 @@
+gem 'sinatra'
+gem 'compass'
+gem 'haml'
+gem 'sass'
0  README
No changes.
21 application.rb
@@ -0,0 +1,21 @@
+require 'sinatra'
+#require 'sinatra/compass'
+require 'haml'
+require 'sass'
+
+
+set :haml, :format => :html5
+
+
+get '/' do
+ haml :index
+end
+
+get '/:path' do
+ haml params[:path].to_sym
+end
+
+get '/style.css' do
+ content_type 'text/css', :charset => 'utf-8'
+ scss :style
+end
5 config.ru
@@ -0,0 +1,5 @@
+#require 'rubygems'
+require 'sinatra'
+require 'haml'
+require 'compass'
+run Sinatra::Application
6 css/style.scss
@@ -0,0 +1,6 @@
+body {
+ background-color: #000;
+ a {
+ text-decoration: none;
+ }
+}
BIN  public/.DS_Store
Binary file not shown
0  public/robots.txt
No changes.
BIN  views/.DS_Store
Binary file not shown
2  views/index.haml
@@ -0,0 +1,2 @@
+%h1 What Up
+%h2 Yeya
10 views/layout.haml
@@ -0,0 +1,10 @@
+!!!
+%html{:lang => "en", "xml:lang" => "en", :xmlns => "http://www.w3.org/1999/xhtml"}
+ %head
+ %meta{:content => "text/html; charset=utf-8", "http-equiv" => "Content-Type"}/
+ %title Squiid
+ %link{:href => "assets/css/style.css", :media => "all", :rel => "stylesheet", :type => "text/css"}/
+ %body
+ .container
+ =yield
+
10 views/style.scss
@@ -0,0 +1,10 @@
+body {
+ a {
+ text-decoration: none;
+ }
+}
+
+.container {
+ width: 960px;
+ margin: 0 auto;
+}
Please sign in to comment.
Something went wrong with that request. Please try again.