From 3cceed4af466d11e0735246bbd09f8451f6f9383 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Tue, 14 Apr 2020 15:48:25 -0400 Subject: cgi search form: path; theme; download remote src - config output path - dark theme - allow downloads flag for download of remote file cgi.d --- org/output_hub.org | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'org/output_hub.org') diff --git a/org/output_hub.org b/org/output_hub.org index ba39e2e..3e66b29 100644 --- a/org/output_hub.org +++ b/org/output_hub.org @@ -265,7 +265,12 @@ if ((opt_action.cgi_search_form_codegen)) { string _cgi_search_script_raw_fn_d = (opt_action.cgi_sqlite_search_filename_d.empty) ? config.conf.w_srv_cgi_search_script_raw_fn_d : opt_action.cgi_sqlite_search_filename_d; - auto pth_sqlite_cgi = spinePathsSQLiteCGI!()(_cgi_search_script_raw_fn_d, _cgi_search_script, opt_action.output_dir_set); + string _cgi_path = (opt_action.output_dir_set.length > 0) + ? opt_action.output_dir_set + : (config.conf.w_srv_data_root_path.length > 0) + ? config.conf.w_srv_data_root_path + : ""; + auto pth_sqlite_cgi = spinePathsSQLiteCGI!()(_cgi_search_script_raw_fn_d, _cgi_search_script, _cgi_path); writeln("sqlite cgi search form..."); writeln(" ", pth_sqlite_cgi.search_form_path_out); } -- cgit v1.2.3