1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

use tera::Tera;
use toml::Table;

/// A constructable version of [HumusEngine] without the types attached.
///
/// Can be converted from and to to a [HumusEngine] when it is enabled
/// with the `axum-view` flag. Otherwise it acts as a container for
/// returning values from the [TemplateEngineLoader].
///
/// [HumusEngine]: ./struct.HumusEngine.html
/// [TemplateEngineLoader]: ./struct.TemplateEngineLoader.html
pub struct HumusProtoEngine {

	/// An instance of the tera templating engine.
	pub tera: Tera,

	/// If it was possible to read any extra configuration it will be stored here.
	pub template_config: Option<Table>,
}