    let base = Path::new(env!("CARGO_MANIFEST_DIR"));

    hbs.register_template_file("Dockerfile", base.join("./templates/Dockerfile.hbs")).expect("Could not read ./template/Dockerfile.hbs file.");
    hbs.register_template_file(".dockerignore", base.join("./templates/.dockerignore.hbs")).expect("Could not read ./template/.dockerignore.hbs file.");

    hbs.register_helper("choose", Box::new(choose_helper));
    hbs
}

pub fn dockerfile<T>(hbs: &Handlebars<'static>, data: &T) -> String
where
    T: Serialize
{
    hbs.render("Dockerfile", data).expect("Could not render docker tempalte")
}