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>,
}