Expand description
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.
Re-exports§
pub use config::Config;
pub use document::load_documents_from_disk;
pub use document::Header;
pub use document::Document;
Modules§
- User-facing configuration.
- Provides a representation of a Ferru document.
Enums§
- An enum of all error kinds.
Functions§
- 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.
- Recursively traverses the specified directory and loads the all files matching the specified criteria as templates.
Type Aliases§
- A convenient alias type for results when using Ferru.
- A convenient alias type for the type used for storing templates.