Crates.io | tempura |
lib.rs | tempura |
version | 0.5.0 |
source | src |
created_at | 2022-10-31 06:35:22.700235 |
updated_at | 2023-12-18 19:02:47.234419 |
description | Pipeline-based Static site generator |
homepage | |
repository | https://github.com/yuma140902/tempura |
max_upload_size | |
id | 701955 |
size | 151,566 |
Tempura is a pipeline-based Static Site Generator (SSG) written in Rust. You can define pipelines to generate your site from various resources such as Markdown, JSON, plain text, Handlebars templates, pictures, etc.
cargo install tempura
You can download a binary archive from releases page.
# Run one of the following to download binary archive
wget https://github.com/yuma140902/tempura/releases/latest/download/tempura-aarch64-apple-darwin.tar.gz
wget https://github.com/yuma140902/tempura/releases/latest/download/tempura-aarch64-unknown-linux-gnu.tar.gz
wget https://github.com/yuma140902/tempura/releases/latest/download/tempura-aarch64-unknown-linux-musl.tar.gz
wget https://github.com/yuma140902/tempura/releases/latest/download/tempura-i686-pc-windows-msvc.zip
wget https://github.com/yuma140902/tempura/releases/latest/download/tempura-i686-unknown-linux-gnu.tar.gz
wget https://github.com/yuma140902/tempura/releases/latest/download/tempura-i686-unknown-linux-musl.tar.gz
wget https://github.com/yuma140902/tempura/releases/latest/download/tempura-x86_64-apple-darwin.tar.gz
wget https://github.com/yuma140902/tempura/releases/latest/download/tempura-x86_64-pc-windows-msvc.zip
wget https://github.com/yuma140902/tempura/releases/latest/download/tempura-x86_64-unknown-linux-musl.tar.gz
Or you can download and install with cargo-binstall.
cargo binstall tempura
The content of this section is out of date. It contains information for v0.3.x, but the latest version is v0.5.x. Please wait for updates.
The content of this section is out of date. It contains information for v0.3.x, but the latest version is v0.5.x. Please wait for updates.
https://yuma14.net/tempura-doc/
The content of this section is out of date. It contains information for v0.3.x, but the latest version is v0.5.x. Please wait for updates.
Run tempura init my_project
.
The following directories and files will be created.
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.