refactor(config): extract configuration renderer

Render from inputs supplied by the app, reuse the script crate, and preserve the default template fast path.
This commit is contained in:
Tunglies
2026-11-30 18:44:11 +08:00
parent b232c4506d
commit dfeebd145b
16 changed files with 1928 additions and 2062 deletions
+1 -6
View File
@@ -17,12 +17,7 @@ pub const ITEM_MERGE_EMPTY: &str = "# Profile Enhancement Merge Template for Cla
";
pub const ITEM_SCRIPT: &str = "// Define main function (script entry)
function main(config, profileName) {
return config;
}
";
pub use clash_verge_config_render::ITEM_SCRIPT;
pub const ITEM_RULES: &str = "# Profile Enhancement Rules Template for Clash Verge