Skip to content

Instantly share code, notes, and snippets.

@jasonyost
Created June 16, 2014 10:16
Show Gist options
  • Save jasonyost/dd50780c39575bde41d1 to your computer and use it in GitHub Desktop.
Save jasonyost/dd50780c39575bde41d1 to your computer and use it in GitHub Desktop.
Atom snippet for creating HTML document in HAML
!!!
%html
%head
%title
= content_for?(:title) ? yield(:title) : ""
%body
= yield
'.text.haml':
'HTML 5 Skeleton':
'prefix': 'html'
'body': '!!!\n%html\n\t%head\n\t\t%title\n\t\t\t= content_for?(:title) ? yield(:title) : "$1"\n\t%body\n\t\t= yield'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment