Skip to content

Instantly share code, notes, and snippets.

@dennisschipper
Created March 29, 2012 18:00
Show Gist options
  • Save dennisschipper/2241031 to your computer and use it in GitHub Desktop.
Save dennisschipper/2241031 to your computer and use it in GitHub Desktop.
Build a (somewhat) static site with Middleman, SASS & Ruby
<% content_for :head do %>
<title>The Middleman!</title>
<% end%>
<h1>The Middleman is watching.</h1>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame -->
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
<%= stylesheet_link_tag "site.css" %>
<%= yield_content :head %>
</head>
<body class="<%= page_classes %>">
<header>
<h1>My home on the web</h1>
<p>The amazing middleman powered site!</p>
</header>
<div id="main" role="main">
<%= yield %>
</div>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame -->
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
<%= stylesheet_link_tag "site.css" %>
<%= yield_content :head %>
</head>
<body class="<%= page_classes %>">
<div id="main" role="main">
<%= yield %>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment