Skip to main content

Function: renderSync()

renderSync(source, data?): string

Defined in: src/liquidscript.ts:93

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

string

The result of rendering source with data from data.