lib-humus 0.6.0

Helps creating configurable frontends for humans and computers using axum, Tera and toml.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// SPDX-FileCopyrightText: 2026 Slatian <baschdel@disroot.org>
//
// SPDX-License-Identifier: AGPL-3.0-or-later

//! Useful middleware to extract template settings for use with the templates.
//!
//! For a ready to use implementation use [TemplateSettingsLayer].
//!
//! If you want to build your own middleware please have a look at the helper modules in here, they contain the functions that the [TemplateSettingsLayer] uses in the background.

pub mod format_extraction;
pub mod language_extraction;
mod template_settings;

pub use template_settings::TemplateSetting;
pub use template_settings::TemplateSettingsLayer;
pub use template_settings::TemplateSettingsService;