Expand description
lib-humus helps with some fertile ground to build project on.
It helps combining axum with tera and getting configuration from toml-files.
Structs§
- 🌄 Tera based Templating Engine that writes out axum Response structs.
- A constructable version of HumusEngine without the types attached.
- Helps loading Templates from disk along with a handy configuration file.
Enums§
- Defines how the response should be rendered.
- Returned when loading a template using the TemplateEngineLoader fails.
- Returned when read_toml_from_file() fails.
Traits§
- Provides information on what to render and how to deliver it to the HumusEngine.
- Provides context from the query for use in the HumusEngine.
- 👁 Provides data and logic for the HumusEngine and knows how to put information together.
Functions§
- Reads from a specified filepath, parses as toml and returns as the desired deserialized type.