Engineering
Sasha — Static Site Generator
April 2025
View on GitHub ↗
A simple system for writing articles and generating sites that are effortless to maintain.
Markdown articles & folder directories are rendered into HTML templates.
Template System
The template system assembles template fragments into a final layout.
Use .frag.html fragment HTML files for
templates.
Layouts
Layout templates are used to render both article & directory pages.
Layouts follow a hierarchal order to building a final HTML page.
Articles are converted to HTML using Pandoc.
The template system assembles fragments and injects
them into the
layout.frag.html Layout Template file.
The final output is a self-contained HTML page.
Replacement Tags
The template system uses
{{ }} Replacement Tags to inject content
into template fragments.
<!-- Layout Template -->
<!DOCTYPE html>
<html lang="en">
{{HEAD}}
{{BODY}}
{{FOOTER}}
</html>
The
project README
contains complete documentation for the
template system.