Expand description
Zorto core — the library powering the zorto static site generator.
§Overview
Zorto builds static websites from Markdown content with TOML frontmatter,
Tera templates, and optional SCSS compilation. Its distinguishing feature is
executable code blocks: fenced blocks marked {python}, {bash}, or
{sh} are executed at build time and their output is rendered inline.
§Library usage
The primary entry point for programmatic use is site::Site:
use std::path::Path;
use zorto_core::site::Site;
let root = Path::new("my-site");
let output = root.join("public");
let mut site = Site::load(root, &output, false)?;
site.build()?;