aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/doc_reform/io_out/hub.d
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2020-04-14 15:48:25 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2020-05-20 11:27:26 -0400
commit3cceed4af466d11e0735246bbd09f8451f6f9383 (patch)
tree7b38bffe46a1d913faaebdfac4b95466846038ea /src/doc_reform/io_out/hub.d
parenttrust more, else minor (diff)
cgi search form: path; theme; download remote src
- config output path - dark theme - allow downloads flag for download of remote file cgi.d
Diffstat (limited to 'src/doc_reform/io_out/hub.d')
-rw-r--r--src/doc_reform/io_out/hub.d7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/doc_reform/io_out/hub.d b/src/doc_reform/io_out/hub.d
index 2220d33..729b569 100644
--- a/src/doc_reform/io_out/hub.d
+++ b/src/doc_reform/io_out/hub.d
@@ -150,7 +150,12 @@ template outputHubOp() {
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);
}