lists3 0.1.1

Light-weight CLI tool to create a file browser for S3 buckets provisioning bucket listing.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
mod list_vanilla;
mod list_bootstrap;

/// Loads the HTML templates' content into a Jinja Environment
///
/// # Returns
///
/// Returns the constructed `Arc` for the `Environment` object, that holds the central configuration state for templates.
/// It is also the container for all loaded templates.
pub fn environment() -> minijinja::Environment<'static> {
    let mut env = minijinja::Environment::new();
    env.add_template_owned("list-s3-vanilla", list_vanilla::get_content()).unwrap();
    env.add_template_owned("list-s3-bootstrap", list_bootstrap::get_content()).unwrap();
    env
}