Skip to content

Commit

Permalink
Merge pull request #38 from pikesley/cannot-fathom-partials
Browse files Browse the repository at this point in the history
Cannot fathom partials
  • Loading branch information
Sam Pikesley committed Nov 17, 2013
2 parents 667dbd9 + 41cade3 commit 8ea74a1
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 34 deletions.
4 changes: 2 additions & 2 deletions lib/uncle_clive.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ class Spectrum < Sinatra::Base

get '/' do
haml :readme, :locals => {
:text => markdown(File.read('README.md')),
:title => '© 1982 Sinclair Research Ltd.'
:title => '© 1982 Sinclair Research Ltd.',
:text => markdown(File.read('README.md'))
}
end

Expand Down
11 changes: 11 additions & 0 deletions lib/views/layout.haml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
!!! 5
%html(lang="en")
%head
%title= title
%link{:rel => 'stylesheet', :href => '//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css', :type => "text/css"}
%link{:rel => 'stylesheet', :href => 'http://bootswatch.com/amelia/bootstrap.min.css', :type => "text/css"}
%link{:rel => 'stylesheet', :href => '../sinclair.css', :type => "text/css"}
%link{:rel => 'stylesheet', :href => '../uncle-clive.css', :type => "text/css"}

%body
= yield
32 changes: 12 additions & 20 deletions lib/views/readme.haml
Original file line number Diff line number Diff line change
@@ -1,23 +1,15 @@
!!! 5
%html(lang="en")
%head
%title= title
%link{:rel => 'stylesheet', :href => '//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css', :type => "text/css"}
%link{:rel => 'stylesheet', :href => '../uncle-clive.css', :type => "text/css"}

%body
.body
%a{:href => "https://github.com/pikesley/uncle-clive"}
%img{:style => "position: absolute; top: 0; right: 0; border: 0;",
.body
%a{:href => "https://github.com/pikesley/uncle-clive"}
%img{:style => "position: absolute; top: 0; right: 0; border: 0;",
:src => "https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png",
:alt => "Fork me on GitHub"}
.container
#readme~ text
.container
#readme~ text

%footer
%p
%a{:href => "http://github.com/pikesley/uncle-clive"}Source on Github
|
%a{:href => "http://travis-ci.org/pikesley/uncle-clive"}Built on Travis
|
%a{:href => "http://heroku.com"}Hosted on Heroku
%footer
%p
%a{:href => "http://github.com/pikesley/uncle-clive"}Source on Github
|
%a{:href => "http://travis-ci.org/pikesley/uncle-clive"}Built on Travis
|
%a{:href => "http://heroku.com"}Hosted on Heroku
16 changes: 4 additions & 12 deletions lib/views/tabliser.haml
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
!!! 5
%html(lang="en")
%head
%title= title
%link{:rel => 'stylesheet', :href => 'http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css', :type => "text/css"}
%link{:rel => 'stylesheet', :href => '../sinclair.css', :type => "text/css"}

%body
.body
.container
.hero-unit
= table
.body
.container
.hero-unit
= table

0 comments on commit 8ea74a1

Please sign in to comment.