Brace Tags is a static site generator focused on simplicity. It does one thing: solves the problem of having to repeat the same HTML code on several web pages. (In other words, it provides "partials")
The template language provided by Brace Tags has only two tags, include
and
is
.
You can use Brace Tags to build a multi-page static website without duplicating navigation or footer code. Here's generally how it works:
Find duplicated code snippets in your HTML files. Extract them into separate files called "partials".
Replace each duplicated code snippet with a special placeholder tag. The tag
looks like: {% include mypartial.html %}
. This is where the content from a
partial will be injected.
Run the tags build
command to assemble the website from your source code.
You can put the generated site online using any static site hosting provider.
Find more static site generators.