It contains the simple subprograms for CGI, e.g. getting the environment variables, parsing QUERY_STRING, the form data, and the cookies, writing the HTTP headers, etc.
It contains the helpers for writing escaped text into HTML, etc.
It's a page producer to write HTML from the template file. Special tags in the template file will be notified to the callback procedure.
<?TAG/>
- You can replace it to any HTML written in callback.
<?TAG>CONTENTS</?TAG>
You can use
CONTENTS
as a sub-template for recursive or ignore. The sub-template is just as or part ofCONTENTS
.example:
<?TAG>XXX<?SUBA>AAA</?SUBA><?SUBB>BBB</?SUBB>YYY</?TAG>
It can select all (
XXX
toYYY
), extractSUBA
(AAA
) orSUBB
(BBB
), repeat these, or ignore all.<a ?TAG>
Attribute-style special tag. And, any normal attributes after it will be removed and saved as the content of the sub-template. It's usable to preview with your web browser.
example:
<link rel="stylesheet" type="text/css" ?APPCSS href="sample.css" />
It uses
sample.css
when this template is directly opened in the browser, and it can select whether to replace the parts after the placeholder (APPCSS
href="sample.css") with another style sheet, or use the content (href="sample.css"
) as is.
It's a very very simple RSS 2.0 writer.
It's a filesystem-based interprocess mutex. There are the simple subprograms and the RAII-style object.