diff options
| author | Ralph Amissah <ralph.amissah@gmail.com> | 2020-03-29 18:32:41 -0400 | 
|---|---|---|
| committer | Ralph Amissah <ralph.amissah@gmail.com> | 2020-05-20 11:27:25 -0400 | 
| commit | 0283f4aaef854c625cf3b7a072bdbb682dc1d765 (patch) | |
| tree | 6e1ef2a760b314598ae3119cd8d8f50288da4bcc /src | |
| parent | 0.10.0 search sqlite & cgi (diff) | |
cgi.d by Adam Ruppe used, license Boost
Diffstat (limited to 'src')
| -rw-r--r-- | src/doc_reform/io_out/cgi_sqlite_search_form.d | 14 | ||||
| -rw-r--r-- | src/doc_reform/io_out/paths_output.d | 5 | 
2 files changed, 18 insertions, 1 deletions
| diff --git a/src/doc_reform/io_out/cgi_sqlite_search_form.d b/src/doc_reform/io_out/cgi_sqlite_search_form.d index b1c64eb..a694042 100644 --- a/src/doc_reform/io_out/cgi_sqlite_search_form.d +++ b/src/doc_reform/io_out/cgi_sqlite_search_form.d @@ -984,5 +984,19 @@ configuration "default" {          // Handle error        }      } +    { // cgi.d +      import std.net.curl, std.stdio; +      try { +        auto cgi_d = get("https://raw.githubusercontent.com/adamdruppe/arsd/master/cgi.d"); +        try { +          auto f = File(pth_sqlite_cgi.cgi_d_path_out, "w"); +          f.write(cgi_d); +        } catch (ErrnoException ex) { +          // Handle error +        } +      } catch (ErrnoException ex) { +        // Handle error +      } +    }    }  } diff --git a/src/doc_reform/io_out/paths_output.d b/src/doc_reform/io_out/paths_output.d index c7148a6..56cc40c 100644 --- a/src/doc_reform/io_out/paths_output.d +++ b/src/doc_reform/io_out/paths_output.d @@ -601,7 +601,10 @@ template spinePathsSQLiteCGI() {          return ("src/".chainPath(base_filename(cgi_search_form_d)).asNormalizedPath).array;        }        string search_form_path_out() { -        return (src.chainPath((cgi_search_form_d)).asNormalizedPath).array; +        return (src.chainPath(cgi_search_form_d).asNormalizedPath).array; +      } +      string cgi_d_path_out() { +        return (src.chainPath("cgi.d").asNormalizedPath).array;        }      }      return _PathsStruct(); | 
