wiki.pl -- ClioPatria wiki-page server
This module serves wiki-pages from (by default) cliopatria(web/help)
. If
the user requests an X.html page, it runs SWI-Prolog's PlDoc wiki-engine
over the associated X.txt
file.
- find_file(+Spec, -File) is semidet[private]
- Translate Spec 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.
- serve_file(+File, +Request) is det[private]
- serve_file(+Extension, +File, +Request) is det[private]
- Serve the requested file.
- serve_index_file(+Dir, +Request) is semidet[private]
- Serve
index.txt
or index.html, etc. if it exists. - serve_wiki(+String, +File, +Request) is det[private]
- Emit page from wiki content in String.
- include(+Object, +Type, +Options)//
- file(+Path, Options)//
- Trap translation of \
file(+Path, Options)
. The first clause reduces the label of the file to the plain file-name if the file is inside the help-system. - plfile_href(+Path, -HREF) is det[private]
- Create a link for a file to see the (pretty) source if the file is inside the help system. Otherwise create a normal PlDoc link.
- current_alias_root(-Root)[private]
- Root is the root of the current file-alias we are served from.
Undocumented predicates
The following predicates are exported, but not or incorrectly documented.