aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/doc_reform/spine.d
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2020-04-20 13:12:53 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2020-05-20 11:27:26 -0400
commit437e3e7c363a0f876e551609518718bce2c89218 (patch)
treecd59ccaf9ea71908fbb4a0ca49b50e331555487a /src/doc_reform/spine.d
parentcgi search form, no date_published breaks regex, initialize to "0000" (diff)
cgi search form title
Diffstat (limited to 'src/doc_reform/spine.d')
-rwxr-xr-xsrc/doc_reform/spine.d5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/doc_reform/spine.d b/src/doc_reform/spine.d
index 1ddfca1..01b7d8e 100755
--- a/src/doc_reform/spine.d
+++ b/src/doc_reform/spine.d
@@ -173,6 +173,7 @@ string program_name = "spine";
"workon" : false,
];
string[string] settings = [
+ "cgi-search-title" : "", // config default: "spine-search"
"cgi-sqlite-search-filename" : "", // config default: "spine-search"
"config" : "",
"output" : "",
@@ -244,6 +245,7 @@ string program_name = "spine";
"very-verbose", "output to terminal", &opts["very-verbose"],
"workon", "(reserved for some matters under development & testing)", &opts["workon"],
"xhtml", "xhtml output", &opts["xhtml"],
+ "cgi-search-title", "if generating a cgi search form the title to use for it", &settings["cgi-search-title"],
"cgi-sqlite-search-filename", "=[filename] default is spine-search", &settings["cgi-sqlite-search-filename"],
"config", "=/path/to/config/file/including/filename", &settings["config"],
"lang", "=[lang code e.g. =en or =en,es]", &settings["lang"],
@@ -436,6 +438,9 @@ string program_name = "spine";
@trusted string sqlite_filename() {
return settings["sqlite-db-filename"];
}
+ @trusted string cgi_search_title() {
+ return settings["cgi-search-title"];
+ }
@trusted string cgi_sqlite_search_filename() {
return settings["cgi-sqlite-search-filename"];
}