Skip to content

Instantly share code, notes, and snippets.

View martincr's full-sized avatar

martincr martincr

View GitHub Profile
@martincr
martincr / Double quotes using Haml with Sinatra
Created April 12, 2011 00:25
To avoid the daft single quotes in Haml, include this line in your main.rb file and restart your server
set :haml, :attr_wrapper => '"'
@martincr
martincr / Include Blueprint CSS
Created April 8, 2011 20:24
Basic blueprint-css include
<link rel="stylesheet" href="css/blueprint/screen.css" type="text/css" media="screen, projection">
<link rel="stylesheet" href="css/blueprint/print.css" type="text/css" media="print">
<!--[if lt IE 8]>
<link rel="stylesheet" href="css/blueprint/ie.css" type="text/css" media="screen, projection">
<![endif]-->
@martincr
martincr / HTML5 Layout
Created April 5, 2011 14:05
Basic layout using HTML5 layout elements
<!doctype html>
<html>
<head>
<title>Page title</title>
</head>
<body>
<header>
<h1>Page title</h1>
</header>
<nav>