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 /org | |
parent | 0.10.0 search sqlite & cgi (diff) |
cgi.d by Adam Ruppe used, license Boost
Diffstat (limited to 'org')
-rw-r--r-- | org/default_paths.org | 5 | ||||
-rw-r--r-- | org/out_cgi_search_sqlite.org | 27 |
2 files changed, 31 insertions, 1 deletions
diff --git a/org/default_paths.org b/org/default_paths.org index 789d94e..20dae9e 100644 --- a/org/default_paths.org +++ b/org/default_paths.org @@ -1647,7 +1647,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(); diff --git a/org/out_cgi_search_sqlite.org b/org/out_cgi_search_sqlite.org index 91171f4..d3f965d 100644 --- a/org/out_cgi_search_sqlite.org +++ b/org/out_cgi_search_sqlite.org @@ -153,6 +153,20 @@ mixin GenericMain!cgi_function_intro; // 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 + } + } } } #+END_SRC @@ -1267,6 +1281,19 @@ configuration "default" { } #+END_SRC +* cgi.d arsd Adam Ruppe + + used for cgi + + https://dlang.org/phobos/std_net_curl.html + https://dlang.org/library/std/net/curl.html + + https://github.com/adamdruppe/arsd + https://github.com/adamdruppe/arsd/blob/master/cgi.d + curl https://raw.githubusercontent.com/adamdruppe/arsd/master/cgi.d -o cgi.d + wget https://raw.githubusercontent.com/adamdruppe/arsd/master/cgi.d + aria2c https://raw.githubusercontent.com/adamdruppe/arsd/master/cgi.d + * cgi-search README #+BEGIN_SRC text :NO-tangle "../util/d/cgi/search/README" |