LiquidExtension
7 min
OCP App SDK / LiquidExtension
Class: abstract LiquidExtension
Defined in: src/app/LiquidExtension.ts:25
Defines the interface of a liquid extension, which allows an app to expose custom functionality into the content rendering pipeline.
Constructors
Constructor
new LiquidExtension(): LiquidExtension
Returns
LiquidExtension
Methods
perform()
Defined in: src/app/LiquidExtension.ts:34
Performs the liquid extension.
Parameters
context
of the liquid call
input
any input data provided by the liquid template
Returns
Promise<LiquidExtensionResult>
either successful output (via LiquidExtensionResult.success) or an error message (via LiquidExtensionResult.error)