Permalink
Browse files

Default / overridable <title> in layout, close #16

  • Loading branch information...
1 parent 456fd42 commit 003a902d9d273fcd865c8905987931ba4cb40c24 @6 committed Feb 28, 2013
Showing with 4 additions and 1 deletion.
  1. +3 −0 client/views/index.haml
  2. +1 −1 client/views/layout.haml
View
@@ -1,3 +1,6 @@
+- content_for(:title) do
+ Hello!
+
%a.btn
%i.icon-thumbs-up
It works!
View
@@ -1,7 +1,7 @@
!!! 5
%head
%meta{:charset => "utf-8"}
- %title Hello
+ %title= content_for?(:title) ? yield_content(:title) : "Default title"
%link{:rel => "stylesheet", :href => "/assets/application.css"}
%script{:src => "/assets/application.js"}
= yield_content :custom_head

0 comments on commit 003a902

Please sign in to comment.