16 releases

0.5.2 Sep 4, 2024
0.5.0 Dec 18, 2023
0.4.3 Nov 10, 2023
0.2.2 Jul 11, 2023
0.2.0 Oct 31, 2022

#96 in Template engine

Download history 200/week @ 2024-08-30 46/week @ 2024-09-06 25/week @ 2024-09-13 9/week @ 2024-09-20 21/week @ 2024-09-27 5/week @ 2024-10-04

623 downloads per month

MIT/Apache

78KB
1.5K SLoC

Rust 1K SLoC // 0.0% comments Python 288 SLoC // 0.4% comments Handlebars 20 SLoC

Tempura

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.

Installation

Build from source

cargo install tempura

Download binary

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

Example

yuma14.net

Documentation

https://yuma14.net/tempura-doc/

How to make releases

  1. release/v1.2.3 のような名前のブランチを切る
  2. Cargo.toml のバージョン番号を更新する
  3. 手元で cargo build を実行して Cargo.lock を更新する
  4. Pull Request を作る。pre-release.yml が実行されて CHANGELOG.md が更新される。
  5. すべてのチェックが通れば Pull Request をクローズする。release.yml が実行されて crates.io と GitHub のリリースページにリリースが作られる。
  6. ブランチは削除せずに残しておくものとする

Dependencies

~12–22MB
~318K SLoC