Crate ferru [] [src]

Ferru is a lightweight, blazing fast static site generator.

This crate provides a static site generator which can read in a series of templates and documents. It can then parse the documents to separate them into a body and a header. Using rust-mustache it then renders the attributes in the document header as the data to be templated in. It can also then render a final output by rendering the compiled string as the data for another template file.

Ferru can also copy static files over to the directory of the generated website.

Reexports

pub use config::Config;
pub use document::load_documents_from_disk;
pub use document::Header;
pub use document::Document;

Modules

config

User-facing configuration.

document

Provides a representation of a Ferru document.

Enums

Error

An enum of all error kinds.

Functions

build

Reads all relevant files in the specified source directory, uses them to generate a static website, and stores the resulting files in the specified destination directory.

load_templates_from_disk

Recursively traverses the specified directory and loads the all files matching the specified criteria as templates.

Type Definitions

Result

A convenient alias type for results when using Ferru.

TemplateMap

A convenient alias type for the type used for storing templates.