Tempura is a Static Site Generator (SSG) written in Rust. It can generate HTML from Markdown documents and Handlebars templates. It can also handle static content including images and CSS files, and resolve paths accurately.
sh
cargo install tempura
You can download a binary from releases page.
Or you can download with cargo-binstall.
sh
cargo binstall tempura
https://yuma140902.github.io/tempura-doc/
Run tempura init my_project
.
The following directories and files will be created.
text
my_project
│ tempura.json
│
├─public
└─src
├─pages
│ │ sample.md
│ │ style.css
│ │
│ └─sub_dir
│ sample2.md
│
└─templates
page.html.hbs
Edit template files and markdown files as you like.
See also Handlebars Language Guide and CommonMark Specification. It is possible to write front matter, which is out of CommonMark specification.
Run cd my_project && tempura build
.
HTML files are generated in the my_project/public/
directory.
Copy contents of my_project/public/
to your server.