Did you know ... Search Documentation:
plweb.pl -- Server for PlDoc wiki pages and SWI-Prolog website
PublicShow source
To be done
- Turn directory listing into a library.
Source make_log_dir(-Dir) is det[private]
Ensure the log directory exists
Source favicon(+Request)[private]
Serve /favicon.ico.
Source touch_icon(+Request)[private]
Serve /apple-touch-icon.png.
Source serve_page(+Alias, +Request)[private]
HTTP handler for files below document-root.
Source find_file(+Relative, -File) is det[private]
Translate Relative into a File in the document-root tree. If the given extension is .html, also look for .txt files that can be translated into HTML. .frg files embed the contents of the body in the normal 1 col layout format. .hom files embed the contents of the body in the home page format. Usually the home page fill will have nothing in it
Source serve_file(+File, +Request) is det[private]
Source serve_file(+Extension, +File, +Request) is det[private]
Serve the requested file.
Source serve_index_file(+Dir, +Request) is semidet[private]
Serve index.txt or index.html, etc. if it exists.
Source serve_wiki_file(+File, +Request) is det[private]
Serve a file containing wiki text.
Source serve_wiki(+String, +File, +Request) is det[private]
Emit page from wiki content in String.
Source wiki_path(+Request, +File, -WikiPath) is det[private]
WikiPath is the canonical path to describe the wiki page File.
Source prolog:doc_directory(+Dir) is semidet[multifile]
Enable editing of wiki documents from the www directory.
Source manual_file(+Request) is det[private]
HTTP handler for /man/file.{html,gif}
Source serve_embedded_html_file(+File, +Request) is det[private]
Serve a .frg file, which is displayed as an embedded HTML file in the 1 col content format, or a .hom file, which is displayed as an embedded HTML file in the home page format

Undocumented predicates

The following predicates are exported, but not or incorrectly documented.

Source server
Source server(Arg1)