!!!
%html
  %head
    %meta{:content => "text/html; charset=UTF-8", "http-equiv" => "Content-Type"}/
    %meta{:content => "width=device-width, initial-scale=1.0", :name => "viewport"}/
    %title= content_for?(:title) ? yield(:title) : "My Application"
    %meta{:content => "#{content_for?(:description) ? yield(:description) : "My Application"}", :name => "description"}/
    = stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true
    = javascript_include_tag 'application', 'data-turbolinks-track' => true
    = csrf_meta_tags
    / Custom Fonts
    %link{:href => "https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css", :rel => "stylesheet"}/
  %body
    %header
      = render 'layouts/navigation'
    = render 'layouts/messages'
    = yield
    = render 'shared/tweets'
    = render 'layouts/footer'

!!!
%html
  %head
    %meta{:content => "text/html; charset=UTF-8", "http-equiv" => "Content-Type"}/
    %meta{:content => "width=device-width, initial-scale=1.0", :name => "viewport"}/
    %title= @meta_title
    %meta{:content => "#{content_for?(:description) ? yield(:description) : "My Application"}", :name => "description"}/
    = stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true
    = javascript_include_tag 'application', 'data-turbolinks-track' => true
    = csrf_meta_tags
    / Custom Fonts
    %link{:href => "https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css", :rel => "stylesheet"}/
  %body
    %header
      = render 'layouts/navigation'
    = render 'layouts/messages'
    = yield
    = render 'shared/tweets'
    = render 'layouts/footer'

Convert app layout to variable for meta title, so all pages can have their own way of showing tab names and titles for seo.
Convert app layout to variable for meta title, so all pages can have their own way of showing tab names and titles for seo.
