envl 0.10.0

load .envl and .envlconf
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::io::Error;

use crate::{generator::rust::generate_rust_file, VariableHashMap};

pub mod rust;

pub fn generate_file(data: VariableHashMap, output: String) -> Result<String, Error> {
    if output.ends_with(".rs") {
        generate_rust_file(data)
    } else {
        Err(Error::other("Unsupported file"))
    }
}