diff options
author | alyx <alyx@aleteoryx.me> | 2024-04-06 16:59:12 -0400 |
---|---|---|
committer | alyx <alyx@aleteoryx.me> | 2024-04-06 16:59:12 -0400 |
commit | a8046f11e551c69d1e45cd432694b4c8a04ee7b7 (patch) | |
tree | 6f9a5b02f8be209f46ff2c30d2d51ffc070a2226 /src/config.rs | |
parent | 79999cecedd84e99655fbcdba0bd4e715a22173f (diff) | |
download | lfm_embed-a8046f11e551c69d1e45cd432694b4c8a04ee7b7.tar.gz lfm_embed-a8046f11e551c69d1e45cd432694b4c8a04ee7b7.tar.bz2 lfm_embed-a8046f11e551c69d1e45cd432694b4c8a04ee7b7.zip |
Lua dev mode functional
Diffstat (limited to 'src/config.rs')
-rw-r--r-- | src/config.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config.rs b/src/config.rs index 008eb7a..917646e 100644 --- a/src/config.rs +++ b/src/config.rs @@ -23,7 +23,7 @@ pub struct Config { pub(crate) theme_dir: Option<Arc<str>>, pub(crate) theme_ext_hbs: Arc<str>, pub(crate) theme_ext_lua: Arc<str>, - pub(crate) theme_debug: bool, + pub(crate) theme_dev: bool, pub(crate) allowlist: BTreeSet<String>, pub(crate) allowlist_mode: String, @@ -48,7 +48,7 @@ impl Config { theme_dir: var("LFME_THEME_DIR").ok().map(Into::into), theme_ext_hbs: var("LFME_THEME_EXT_HBS").unwrap_or_else(|_| ".hbs".into()).into(), theme_ext_lua: var("LFME_THEME_EXT_LUA").unwrap_or_else(|_| ".lua".into()).into(), - theme_debug: var("LFME_THEME_DEV").map(|h| &h == "1").unwrap_or(false), + theme_dev: var("LFME_THEME_DEV").map(|h| &h == "1").unwrap_or(false), allowlist: var("LFME_WHITELIST").or_else(|_| var("LFME_ALLOWLIST")).ok().map(|w| w.split(',').map(|s| s.trim().to_string()).collect()).unwrap_or_default(), allowlist_mode: var("LFME_WHITELIST_MODE").or_else(|_| var("LFME_ALLOWLIST_MODE")).map(|m| m.to_ascii_lowercase()).unwrap_or_else(|_| "open".into()), |