Expand description
§ssg-core — Platform-independent SSG compilation pipeline
This crate contains the pure-logic core of SSG, with no system
dependencies (openssl, rayon, http-handle). It compiles to
wasm32-wasi and wasm32-unknown-unknown (via wasm-bindgen).
§Features
- Markdown → HTML compilation (pulldown-cmark with GFM extensions)
- Frontmatter parsing (TOML/JSON/YAML)
- Template rendering (when
minijinjais enabled) - Shortcode expansion
- SEO metadata generation
- Search index generation
Structs§
- Search
Entry - Generate a search index entry from HTML content.
Enums§
- Error
- The error type for ssg-core operations.
Functions§
- build_
search_ entry - Build a search index entry from HTML content and metadata.
- compile_
markdown - Compile a Markdown string to HTML.
- compile_
page - Compile a complete page: parse frontmatter, render Markdown to HTML.
- parse_
frontmatter - Parse frontmatter from a Markdown file.
- reading_
time - Estimates reading time in minutes from text content.
- slugify
- Converts a string to a URL-safe slug.
- strip_
html_ tags - Strip HTML tags from a string (simple implementation).
Type Aliases§
- Result
- Specialized Result type for ssg-core operations.