3 releases

new 0.1.2 Dec 5, 2024
0.1.1 Feb 22, 2024
0.1.0 Feb 21, 2024

#53 in Template engine

Download history 14/week @ 2024-09-20 20/week @ 2024-09-27 3/week @ 2024-10-04 82/week @ 2024-11-29

84 downloads per month

GPL-3.0-or-later

23KB
595 lines

Roxy

this is a wip overhaul for my static site generator, roxy. it technically works but it's very rough around the edges.

Installation

cargo install roxy_cli

Usage

roxy_cli [INPUT] [OUTPUT]

Roxy will read each file from INPUT for valid files. It will look for toml for data and md, html, or tera for layout an content files. toml data is loaded into an object and given to content files (which can be used as variables with Tera placeholders). The content files will be processed first as Markdown, then as a Tera template. The output of this process will write to OUTPUT, preserving the original path (relative to INPUT).

Configuration

Currently, Roxy only has two configuration keys

# config.toml
[roxy]
slug_word_limit = 8 # the max word limit for a slug

[syntect]
theme = "base16-ocean.dark" # the name of the theme for syntax highlighting
theme_dir = "./themes" # directory to load themes into syntect

Dependencies

~13–22MB
~338K SLoC