Readonly
aliasesReadonly
astReadonly
blockReadonly
canReadonly
embeddedReadonly
macroReadonly
nameReadonly
sourceSemantically speaking, provide a closure to the template:
Technically speaking, execute the template and stream the result to the output buffer.
Optional
options: {Optional
nodeExecutor?: TwingNodeExecutorOptional
sandboxed?: booleanOptional
sourceMapRuntime?: TwingSourceMapRuntimeOptional
strict?: booleanControls whether accessing invalid variables (variables and or attributes/methods that do not exist) triggers an error.
When set to true
, accessing invalid variables triggers an error.
Optional
templateLoader?: TwingTemplateLoaderOptional
options: {Optional
nodeExecutor?: TwingNodeExecutorOptional
outputBuffer?: TwingOutputBufferOptional
sandboxed?: booleanOptional
sourceMapRuntime?: TwingSourceMapRuntimeOptional
strict?: booleanControls whether accessing invalid variables (variables and or attributes/methods that do not exist) triggers an error.
When set to true
, accessing invalid variables triggers an error.
Optional
templateLoader?: TwingTemplateLoader
The shape of a template. A template