Built with Rust

Static sites, blazing fast

Balzac is a memory-safe static site generator with Handlebars templating and powerful content collections.

Get Started
$ cargo install balzac

Everything you need

A modern static site generator that's fast, safe, and easy to use.

Memory Safe

Built in Rust for guaranteed memory safety. No null pointer exceptions, no data races, no crashes.

Handlebars Templating

Familiar, logic-less templates with partials and helpers. Clean separation of content and presentation.

Content Collections

Organize your Markdown content with frontmatter, syntax highlighting, and custom directives.

Simple & powerful

Write content in Markdown, style with Handlebars templates.

content/posts/hello.md
                         
 ---
 title: "Hello, Balzac"
 date: 2024-01-15
 tags: ["rust", "static-site"]
 ---
 
 # Getting Started
 
 Welcome to **Balzac**! Here's some code:
 
 ```rust
 fn main() {
     println!("Hello, world!");
 }
 ```
 
 :::note
 Directives make content richer.
 :::
                         
                     
templates/post.hbs
                         
 <article class="post">
     <h1>{{title}}</h1>
     <time>{{formatDate date}}</time>
     <div class="tags">
     {{#each tags}}
         <span>{{this}}</span>
     {{/each}}
     </div>
     <div class="content">
     {{{content}}}
     </div>
 </article>