mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2026-11-03 10:12:50 +00:00
Fix exporting useless info in Clash HTTP/SOCKS 5 nodes. Add support for exporting Clash classical rule-provider. Optimize codes. Update build script.
22 lines
665 B
C++
22 lines
665 B
C++
#ifndef TEMPLATES_H_INCLUDED
|
|
#define TEMPLATES_H_INCLUDED
|
|
|
|
#include <string>
|
|
#include <map>
|
|
|
|
#include "subexport.h"
|
|
|
|
typedef std::map<std::string, std::string> string_map;
|
|
|
|
struct template_args
|
|
{
|
|
string_map global_vars;
|
|
string_map request_params;
|
|
string_map local_vars;
|
|
};
|
|
|
|
int render_template(const std::string &content, const template_args &vars, std::string &output, const std::string &include_scope = "template");
|
|
int renderClashScript(YAML::Node &base_rule, std::vector<ruleset_content> &ruleset_content_array, std::string remote_path_prefix, bool script, bool overwrite_original_rules, bool clash_classic_ruleset);
|
|
|
|
#endif // TEMPLATES_H_INCLUDED
|