Skip to content

Instantly share code, notes, and snippets.

@ConAntonakos
Forked from ianoxley/example.html.haml
Last active December 14, 2015 01:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ConAntonakos/5008859 to your computer and use it in GitHub Desktop.
Save ConAntonakos/5008859 to your computer and use it in GitHub Desktop.
!!! 5
%html
%head
%title Example HAML
/[if IE]
%link{ :rel => "stylesheet", :href => "/css/ie.css" }
%body
#container
%header
%h2 Our Awesome HTML5 Template
#main
Did we mention this was awesome?
/ Only this line will be wrapped in a comment
%blockquote
%p Roads? Where we're going we don't need roads
/
Now the whole block will be commented out
%blockquote
%p Roads? Where we're going we don't need roads
%p The line below won't appear in the HTML
-# The rest of this line is a comment
%p The line above won't appear in the HTML, nor will the lines underneath
-#
None of this text will appear in our
rendered output
%p= Time.now
%footer
%address
.hcard
.fn Ian Oxley
.adr
.locality Newcastle-upon-Tyne
.country-name England
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment