diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-11-29 14:53:01 -0500 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-11-29 14:54:13 -0500 |
| commit | a8e99f3a783069cf85b626c6cfb2fbe83ae4fd44 (patch) | |
| tree | 8322b0d20dd02660c3f26fcfd37c2cc4dcd33cda /examples/cgi | |
| parent | 463a0c01f96d86c9c91f02903bc1d194c5e55b15 (diff) | |
chore: new version of OCL and codebase cleanup.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'examples/cgi')
| -rw-r--r-- | examples/cgi/CMakeLists.txt | 16 | ||||
| -rw-r--r-- | examples/cgi/cgi.cc | 75 |
2 files changed, 0 insertions, 91 deletions
diff --git a/examples/cgi/CMakeLists.txt b/examples/cgi/CMakeLists.txt deleted file mode 100644 index e30707c..0000000 --- a/examples/cgi/CMakeLists.txt +++ /dev/null @@ -1,16 +0,0 @@ - -cmake_minimum_required(VERSION 3.15...3.31) - -project( - CGI - VERSION 1.0 - LANGUAGES CXX) - -find_package(Boost REQUIRED COMPONENTS container) - -add_executable(CGI cgi.cc) - -target_link_libraries(CGI PRIVATE Boost::container) - -set_property(TARGET CGI PROPERTY CXX_STANDARD 20) -target_include_directories(CGI PUBLIC ../../include/ocl) diff --git a/examples/cgi/cgi.cc b/examples/cgi/cgi.cc deleted file mode 100644 index b837433..0000000 --- a/examples/cgi/cgi.cc +++ /dev/null @@ -1,75 +0,0 @@ -/* - cgi example - written by Amlal El Mahrouss. - licensed under the Boost Software License - */ - -#include <utility/cgi.hpp> - -static ocl::basic_chunk_string<char> text_sample = R"( -<!DOCTYPE html> -<html> -<head> - <meta charset="UTF-8"> - <title>Error | OCL</title> - <style> - body { - font-family: monospace; - background: white; - color: black; - margin: 2em; - } - h1 { - font-size: 1.5em; - } - hr { - border: none; - border-top: 1px solid #ccc; - } - table { - width: 100%; - border-collapse: collapse; - } - td { - padding: 0.2em 0.5em; - } - td:first-child { - white-space: nowrap; - } - a { - color: blue; - text-decoration: none; - } - a:hover { - text-decoration: underline; - } - </style> -</head> -<body> - <h1>Uh Oh!</h1> - <address>No index file was found in this directory.</address> - <hr> - <table> - <tr><th>Name</th></tr> - <tr><td colspan="3"><hr></td></tr> - - <tr> - <td><a href="javascript:window.location.reload();">Refresh</a></td> - </tr> - - <tr><td colspan="3"><hr></td></tr> - </table> - <address>OCL's Common Gateway Server.</address> -</body> -</html> -)"; - -/* finally test it */ -/* @brief this stub loads a 'index.html' or returns an error message if not found. */ -int main(int argc, char** argv) -{ - ocl::cgi::basic_writer<> writer; - writer << text_sample; - - return 0; -} |
