Skip to content
Browse files

using haml

  • Loading branch information...
1 parent 5308c87 commit ed28cee8886de7ac8d570c4fa8d25c7834bfbcc6 @stevenwilkin committed Apr 22, 2009
Showing with 27 additions and 1 deletion.
  1. +2 −1 trends.rb
  2. +1 −0 views/index.haml
  3. +24 −0 views/layout.haml
View
3 trends.rb
@@ -2,7 +2,8 @@
require 'rubygems'
require 'sinatra'
+require 'haml'
get '/' do
- 'Hello World!'
+ haml :index
end
View
1 views/index.haml
@@ -0,0 +1 @@
+images here
View
24 views/layout.haml
@@ -0,0 +1,24 @@
+!!! Strict
+%html{:xmlns => "http://www.w3.org/1999/xhtml", 'xml:lang' => 'en', :lang => 'en'}
+
+ %head
+ %meta{'http-equiv' => 'Content-Type', :content => 'text/html;charset=utf-8'}
+ %title
+ twitter trends seen through the eyes of google images
+ %meta{:name => 'description', :content => ''}
+
+ %body
+
+ #wrapper
+
+ #header
+ %h1
+ %a{:href => '/'}trends
+ %h2
+ twitter trends seen through the eyes of google images
+
+ = yield
+
+ #footer
+ © 2009
+ %a{:href => 'http://stevenwilkin.com'} Steven Wilkin

0 comments on commit ed28cee

Please sign in to comment.
Something went wrong with that request. Please try again.