Created
March 29, 2012 18:00
-
-
Save dennisschipper/2241031 to your computer and use it in GitHub Desktop.
Build a (somewhat) static site with Middleman, SASS & Ruby
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% content_for :head do %> | |
<title>The Middleman!</title> | |
<% end%> | |
<h1>The Middleman is watching.</h1> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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