Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Example code for my Introduction to Haml article on
!!! 5
%title Example HAML
/[if IE]
%link{ :rel => "stylesheet", :href => "/css/ie.css" }
%h1 Our Awesome HTML5 Template
Did we mention this was awesome?
/ Only this line will be wrapped in a comment
%p Roads? Where we're going we don't need roads
Now the whole block will be commented out
%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
.fn Ian Oxley
.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
You can’t perform that action at this time.