doctype 5
html
  head
    meta[charset="utf-8"]
    /[if lt IE 9]
      meta[content="text/html; charset=utf-8" http-equiv="Content-Type"]
      = javascript_include_tag "//html5shiv.googlecode.com/svn/trunk/html5.js"
    meta[name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"]
    title = content_for?(:page_title) ? "#{yield(:page_title)} - <%= @app_name.humanize %>" : "<%= @app_name.humanize %>"
    = stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true
    = javascript_include_tag 'application', 'data-turbolinks-track' => true
    = csrf_meta_tags

  body
    = initjs_tag "<%= @app_const_base %>"
    = render 'flash' if flash.any?
    = render 'partials/header'
    = yield
    = render 'partials/footer'

doctype 5
html
  head
    meta[charset="utf-8"]
    /[if lt IE 9]
      meta[content="text/html; charset=utf-8" http-equiv="Content-Type"]
      = javascript_include_tag "//html5shiv.googlecode.com/svn/trunk/html5.js"
    meta[name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"]
    title = content_for?(:page_title) ? "#{yield(:page_title)} - <%= @app_name.humanize %>" : "<%= @app_name.humanize %>"
    = stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true
    = javascript_include_tag 'application', 'data-turbolinks-track' => true
    = csrf_meta_tags

  body
    = initjs_tag "<%= @app_const_base %>"
    = render 'layouts/flash' if flash.any?
    = render 'partials/header'
    = yield
    = render 'partials/footer'

Add `layouts` folder to render flash partial
Add `layouts` folder to render flash partial
