Skip to content

Instantly share code, notes, and snippets.

@JohnLockwood
Created November 10, 2012 17:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JohnLockwood/4051866 to your computer and use it in GitHub Desktop.
Save JohnLockwood/4051866 to your computer and use it in GitHub Desktop.
Translating applicaiton.html.erb to HAML -- this file is translated with modifications in https://gist.github.com/4051775
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><%= content_for?(:title) ? yield(:title) : "Rails3 Mongoid Devise" %></title>
<meta name="description" content="<%= content_for?(:description) ? yield(:description) : "Rails3 Mongoid Devise" %>">
<%= stylesheet_link_tag "application", :media => "all" %>
<%= javascript_include_tag "application" %>
<%= csrf_meta_tags %>
<%= yield(:head) %>
</head>
<body>
<div id="container" class="container">
<header>
<%= render 'layouts/navigation' %>
<%= render 'layouts/messages' %>
</header>
<div id="main" role="main">
<%= yield %>
</div>
<footer>
</footer>
</div> <!--! end of #container -->
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment