Crate blades[][src]

Expand description

Blazing fast dead simple static site generator.

#Features Currently, Cargo doesn’t support binary-only dependencies. As such, these dependencies are behind the bin feature gate, which is enabled by default. When using Blades as a library, they are not necessary, so it is recommended to import blades with default_features = false.

Structs

Main configuration where all the site settings are set. Razor deserializes it from a given TOML file.

All the information regarding one page

Data about where the source of a one particular file is located

All of the site source files

One taxonomical category of the site (e.g. tags, categories).

Aggregation of all the templets of the site’s theme and its template dir.

Traits

A structure that can parse Page from binary data. Is typically a deserializer or an enum of deserializers.

Functions

Delete all the pages that were present in the previous render, but not the current one. Then, write all the paths that were rendered to the file filelist

Place assets located in the assets directory or in the assets subdirectory of the theme, if used, into a dedicated subdirectory of the output directory specified in the config (defaults to assets, too).

Render sitemap, Atom and RSS feeds if enabled in the config.

Type Definitions

A set of all rendered paths. Behind a mutex, so it can be written from multiple threads.