Skip to content

Instantly share code, notes, and snippets.

@wrburgess
Created January 29, 2012 00:45
Show Gist options
  • Save wrburgess/1696467 to your computer and use it in GitHub Desktop.
Save wrburgess/1696467 to your computer and use it in GitHub Desktop.
HTML5 Page Template (for Ruby)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title><%= @title %></title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="stylesheet" href="/css/style.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script src="http://ajax.aspnetcdn.com/ajax/modernizr/modernizr-2.0.6-development-only.js"></script>
</head>
<body id="<%= @body_id %>" class="<%= @body_class %>">
<header>
</header>
<div id="content">
<%= yield %>
</div><!-- /#content -->
<footer>
</footer>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment