Qore WebUtil Module Reference
1.0
|
this is the base class for all template Program container classes More...
Public Member Functions | |
constructor (int po=DefaultProgramOptions) | |
sets up the object | |
Static Public Member Functions | |
static string | add (Program p, string fn, string name, string src) |
adds a template function to a template Program object More... | |
static string | getContentType (string name) |
returns the content type from the file name, ignores any leading "q" in the extensions, assuming a template | |
Public Attributes | |
const | DefaultProgramOptions = PO_REQUIRE_OUR|PO_NO_TOP_LEVEL_STATEMENTS|PO_NO_INHERIT_USER_FUNC_VARIANTS|PO_NO_INHERIT_GLOBAL_VARS|PO_NO_USER_CLASSES|PO_NO_TERMINAL_IO |
default parse options for template Programs | |
Static Private Member Functions | |
static bool | doBlock (string end, reference src, string type, reference i, reference l) |
a helper method used in parsing | |
Private Attributes | |
Program | p |
Holds the template generation function. | |
this is the base class for all template Program container classes
|
static |
adds a template function to a template Program object
p | the Program object to add the template function to |
fn | the name of the template function |
name | the name of the template |
src | the source of the template; Qore source code is delimited as follows:
|
The $ctx hash variable is always present in the template code; this is the call context variable, and is set to the same value as the cx argument in HttpServer::AbstractHttpRequestHandler::handleRequest() plus any context added by the actual handler handing the request. In the example above, a "workflows"
key assigned to a hash has been added to the call context variable.