Interface: LiquidOptions

Hierarchy

Properties

Optional cache

cache? : boolean | number | CacheTemplate[]›

Defined in liquid-options.ts:16

Whether or not to cache resolved templates. Defaults to false.


Optional dynamicPartials

dynamicPartials? : undefined | false | true

Defined in liquid-options.ts:20

If set, treat the filepath parameter in {%include filepath %} and {%layout filepath%} as a variable, otherwise as a literal value. Defaults to true.


Optional extname

extname? : undefined | string

Defined in liquid-options.ts:14

Add a extname (if filepath doesn’t include one) before template file lookup. Eg: setting to ".html" will allow including file by basename. Defaults to "".


Optional fs

fs? : FS

Defined in liquid-options.ts:48

fs is used to override the default file-system module with a custom implementation.


Optional globals

globals? : undefined | object

Defined in liquid-options.ts:50

the global environment passed down to all partial templates, i.e. templates included by include, layout and render tags.


Optional greedy

greedy? : undefined | false | true

Defined in liquid-options.ts:46

Whether trim*Left/trim*Right is greedy. When set to true, all consecutive blank characters including \n will be trimed regardless of line breaks. Defaults to true.


Optional jsTruthy

jsTruthy? : undefined | false | true

Defined in liquid-options.ts:18

Use Javascript Truthiness. Defaults to false.


Optional keepOutputType

keepOutputType? : undefined | false | true

Defined in liquid-options.ts:52

Whether or not to keep value type when writing the Output. Defaults to false.


Optional lenientIf

lenientIf? : undefined | false | true

Defined in liquid-options.ts:26

Modifies the behavior of strictVariables. If set, a single undefined variable will not cause an exception in the context of the if/elsif/unless tag and the default filter. Instead, it will evaluate to false and null, respectively. Irrelevant if strictVariables is not set. Defaults to false.


Optional operators

operators? : Operators

Defined in liquid-options.ts:54

An object of operators for conditional statements. Defaults to the regular Liquid operators.


Optional outputDelimiterLeft

outputDelimiterLeft? : undefined | string

Defined in liquid-options.ts:40

The left delimiter for liquid outputs.


Optional outputDelimiterRight

outputDelimiterRight? : undefined | string

Defined in liquid-options.ts:42

The right delimiter for liquid outputs.


Optional preserveTimezones

preserveTimezones? : undefined | false | true

Defined in liquid-options.ts:44

Whether input strings to date filter preserve the given timezone


Optional root

root? : string | string[]

Defined in liquid-options.ts:12

A directory or an array of directories from where to resolve layout and include templates, and the filename passed to .renderFile(). If it’s an array, the files are looked up in the order they occur in the array. Defaults to ["."]


Optional strictFilters

strictFilters? : undefined | false | true

Defined in liquid-options.ts:22

Whether or not to assert filter existence. If set to false, undefined filters will be skipped. Otherwise, undefined filters will cause an exception. Defaults to false.


Optional strictVariables

strictVariables? : undefined | false | true

Defined in liquid-options.ts:24

Whether or not to assert variable existence. If set to false, undefined variables will be rendered as empty string. Otherwise, undefined variables will cause an exception. Defaults to false.


Optional tagDelimiterLeft

tagDelimiterLeft? : undefined | string

Defined in liquid-options.ts:36

The left delimiter for liquid tags.


Optional tagDelimiterRight

tagDelimiterRight? : undefined | string

Defined in liquid-options.ts:38

The right delimiter for liquid tags.


Optional trimOutputLeft

trimOutputLeft? : undefined | false | true

Defined in liquid-options.ts:34

Similar to trimOutputRight, whereas the \n is exclusive. Defaults to false. See Whitespace Control for details.


Optional trimOutputRight

trimOutputRight? : undefined | false | true

Defined in liquid-options.ts:32

Strip blank characters (including , \t, and \r) from the right of values ({{ }}) until \n (inclusive). Defaults to false.


Optional trimTagLeft

trimTagLeft? : undefined | false | true

Defined in liquid-options.ts:30

Similar to trimTagRight, whereas the \n is exclusive. Defaults to false. See Whitespace Control for details.


Optional trimTagRight

trimTagRight? : undefined | false | true

Defined in liquid-options.ts:28

Strip blank characters (including , \t, and \r) from the right of tags ({% %}) until \n (inclusive). Defaults to false.