Hammer Beta Support for High Sierra & Mojave Available Download.

Buy Hammer
Download
Features
Take the tour
Templates
Browse gallery
Docs
Read up
News + Updates
All the latest about Hammer

HTML Includes

Show Menu

You can include one HTML file inside another by linking to it with an @include tag. Just drop the .html extension, and include it like this:

Hammer will find your _header.html file, and render its content in place of the tag. If you included _header.html in index.html, when you viewed that same index.html file in your Build folder you’d see it would also contain the markup from _header.html.

You can use as many includes as you want, and you can even include files within includes. Be careful, though - don't include your templates into a loop!

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