Interface RenderOptions

interface RenderOptions {
    globals?: object;
    memoryLimit?: number;
    ownPropertyOnly?: boolean;
    renderLimit?: number;
    strictVariables?: boolean;
    sync?: boolean;
    templateLimit?: number;
}

Hierarchy (view full)

Properties

globals?: object

Same as globals on LiquidOptions, but only for current render() call

memoryLimit?: number

For DoS handling, limit new objects creation, including array concat/join/strftime, etc. A typical PC can handle 1e9 (1G) memory without issue..

ownPropertyOnly?: boolean

Same as ownPropertyOnly on LiquidOptions, but only for current render() call

renderLimit?: number

For DoS handling, limit total time (in ms) for each render() call.

strictVariables?: boolean

Same as strictVariables on LiquidOptions, but only for current render() call

sync?: boolean

This call is sync or async? It's used by Liquid internal methods, you'll not need this.

templateLimit?: number

For DoS handling, limit total renders of tag/HTML/output in one render() call. A typical PC can handle 1e5 renders of typical templates per second.