Hammer Beta Support for High Sierra & Mojave Available Download.

Buy Hammer
Take the tour
Browse gallery
Read up
News + Updates
All the latest about Hammer

Filenames in Hammer

Show Menu

How do filenames work in Hammer?

In a Hammer project, you create all your templates in your project folder. Inside, Hammer creates a Build directory, and processes all of your files into it. That means, when you're ready, you can publish just the Build directory to your server.


If a Hammer file starts with an underscore, it's treated as an included file. That means it isn't compiled directly into the Build directory, but can be included inside other files.

That's why you should use filenames like _header.html for included files. Otherwise, if you try to use a variable in header.html without defining it in the same file, header.html will fail to build.

The same goes for SASS & SCSS files - _style.scss won't be compiled into Build/_style.css.

Have a question, want to beta test new releases or have an issue you're stuck with?

Join our supportive community Slack Team and get in touch with us directly. We love to help!

Free Trial
Buy Hammer
Anvil is a beautiful menubar app that can run your Hammer builds under local .dev URL’s - great if you’re using web services like Typekit. Find out more and download it for free at anvilformac.com