WittyTemplate (open)
Contains a Witty template
Syntax
LOADLIB "wh::witty.whlib";
OBJECTTYPE WittyTemplate
Constructor
- MACRO NEW(STRING encoding)
Builds a new Witty template
Properties
Functions
- VARIANT FUNCTION CallWithScope(FUNCTION PTR func, RECORD scope)
- BOOLEAN FUNCTION HasComponent(STRING componentname)
Does this witty have the specified component?
- MACRO LoadBlob(BLOB code, STRING name)
- MACRO LoadCodeDirect(STRING code)
- MACRO LoadLibrary(STRING name)
- MACRO Run(RECORD data)
Run a witty, printing its output
- MACRO RunComponent(STRING componentname, RECORD data)
Run a specific component, printing its output
- MACRO RunComponentTo(INTEGER output, STRING componentname, RECORD data)
Run a specific component to a specific output
- BLOB FUNCTION RunComponentToBlob(STRING componentname, RECORD data)
Get the results of a witty execution of a specific component as a blob
- STRING FUNCTION RunComponentToString(STRING componentname, RECORD data)
Get the results of a witty execution of a specific component as a string
- MACRO RunTo(INTEGER output, RECORD data)
Run a witty to a specific output
- BLOB FUNCTION RunToBlob(RECORD data)
Get the results of a witty execution as a blob
- STRING FUNCTION RunToString(RECORD data)
Get the results of a witty execution as a string