Function: render()
render(
source,data?):Promise<string>
Defined in: src/liquidscript.ts:77
Parse and render Liquid template source using the default Liquid
environment.
Parameters
source
string
Template source code.
data?
Record<string, unknown>
A map of variable names to values. These variables will be available for template authors to use in Liquid expressions.
Returns
Promise<string>
The result of rendering source with data from data.