Skip to content

Instantly share code, notes, and snippets.

@pedromarins
Last active December 17, 2015 18:19
Show Gist options
  • Save pedromarins/5652664 to your computer and use it in GitHub Desktop.
Save pedromarins/5652664 to your computer and use it in GitHub Desktop.
Sublime Snippet to create a new page on Hammer
This snippet was created to improve my speed working with Hammer.
On a new file I just type hammer and hit tab to create a new file with all the stuff I need to start coding a new page.
This works fine for both the Standard Hammer Tamplate and the HTML5 Boilerplate Template.
To install it:
1. On your Sublime menu go to: Tools > New Snippet...
2. Paste the below code into the file.
3. Save as "hammer-new-page.sublime-snippet"
4. Start using it and enjoy!
<snippet>
<content>
<![CDATA[
<!-- \$title Index Title -->
<!-- @include _header -->
<main role=”main”>
<!-- Write your HTML! -->
</main>
<!-- @include _footer -->
]]>
</content>
<tabTrigger>hammer</tabTrigger>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment