Permalink
Browse files

set a title

  • Loading branch information...
1 parent ca087a1 commit 01fdecb41b443475096179f6941f5696192be47c @rohit committed Sep 17, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 app.rb
View
2 app.rb
@@ -20,6 +20,7 @@ class WebSite < Sinatra::Base
@active = "home"
@articles = Article.all.sort
@few_articles = @articles[0..5]
+ @title = "Rohit Arondekar &mdash; a web developer based in Goa"
haml :welcome
end
@@ -29,6 +30,7 @@ class WebSite < Sinatra::Base
@article = Article[article_slug] || raise(Sinatra::NotFound)
@articles = Article.all.sort
@few_articles = @articles[0..5]
+ @title = @article.title + " by Rohit Arondekar"
haml :article
end

0 comments on commit 01fdecb

Please sign in to comment.