Skip to content

Instantly share code, notes, and snippets.

@D3MZ
Created December 3, 2012 03:10
Show Gist options
  • Save D3MZ/4192390 to your computer and use it in GitHub Desktop.
Save D3MZ/4192390 to your computer and use it in GitHub Desktop.
Haml rocks.
<!DOCTYPE html>
<html>
<head>
<title><%= full_title(yield(:title)) %></title>
<%= stylesheet_link_tag "application", media: "all" %>
<%= javascript_include_tag "application" %>
<%= csrf_meta_tags %>
<%= render 'layouts/shim' %>
</head>
<body>
<%= render 'layouts/header' %>
<div class="container">
<%= yield %>
<%= render 'layouts/footer' %>
<%= debug(params) if Rails.env.development? %>
</div>
</body>
</html>
!!!
%html
%head
%title= full_title(yield(:title))
=stylesheet_link_tag "application", media: "all"
=javascript_include_tag "application"
=csrf_meta_tags
=render 'layouts/shim'
%body
=render 'layouts/header'
.container
=yield
=render 'layouts/footer'
=debug(params) if Rails.env.development?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment