Expand description
§Static Site Generator Module
This module provides comprehensive functionality for generating static websites from markdown content with frontmatter. It handles the entire build process including template rendering, asset copying, and site structure generation.
§Features
- Asynchronous file processing for improved performance
- Structured logging with detailed build progress
- Comprehensive error handling with context
- Safe and secure file system operations
- Development server with hot reloading
§Example
use frontmatter_gen::ssg::SsgCommand;
use clap::Parser;
#[tokio::main]
async fn main() -> anyhow::Result<()> {
let cmd = SsgCommand::parse();
cmd.execute().await
}
Structs§
- Arguments for the build subcommand
- Arguments for the serve subcommand
- Command-line interface for the Static Site Generator
Enums§
- Errors specific to the Static Site Generator functionality
- Available subcommands for the Static Site Generator