RunOptions
Interface: RunOptions
Defined in: packages/tagscript/src/lib/Interpreter/Interpreter.ts:15
The options a single render accepts.
Properties
charLimit?
optional charLimit?: number | null
Defined in: packages/tagscript/src/lib/Interpreter/Interpreter.ts:22
The maximum number of characters the render may produce. Going over it rejects with a
WorkloadExceededError. null means no limit.
Default Value
nullkeyValues?
optional keyValues?: IKeyValues
Defined in: packages/tagscript/src/lib/Interpreter/Interpreter.ts:29
Arbitrary data for your own parsers to read at ctx.response.keyValues. The interpreter
never touches it.
Default Value
{}parenType?
optional parenType?: ParenType
Defined in: packages/tagscript/src/lib/Interpreter/Interpreter.ts:35
Which parameter syntaxes a template may use.
Default Value
ParenType.BothseedVariables?
optional seedVariables?: object
Defined in: packages/tagscript/src/lib/Interpreter/Interpreter.ts:41
Variables the template can read, as name to transformer.
Index Signature
[key: string]: ITransformer
Default Value
{}spans?
optional spans?: boolean
Defined in: packages/tagscript/src/lib/Interpreter/Interpreter.ts:57
Record which ranges of the body came from a tag, on Response.spans.
Off by default. The bookkeeping costs time proportional to the square of the tag count, and a render that only wants the body should not pay for it.
Default Value
falsetagLimit?
optional tagLimit?: number
Defined in: packages/tagscript/src/lib/Interpreter/Interpreter.ts:48
The maximum number of characters read from inside one \{...\}. The rest of that tag body
is dropped.
Default Value
2000trace?
optional trace?: boolean
Defined in: packages/tagscript/src/lib/Interpreter/Interpreter.ts:64
Record every step of the render on Response.trace. Off by default, because it keeps a copy of the body per tag.
Default Value
false