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§
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 Aliases§
- Result
- A convenient alias type for results when using Ferru.
- Template
Map - A convenient alias type for the type used for storing templates.