mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-18 22:10:41 -07:00
feat: customize globals & strictVariables when calling render, see #432
This commit is contained in:
@@ -65,6 +65,21 @@ export interface LiquidOptions {
|
||||
orderedFilterParameters?: boolean;
|
||||
}
|
||||
|
||||
export interface RenderOptions {
|
||||
/**
|
||||
* This call is sync or async? It's used by Liquid internal methods, you'll not need this.
|
||||
*/
|
||||
sync?: boolean;
|
||||
/**
|
||||
* Same as `globals` on LiquidOptions, but only for current render() call
|
||||
*/
|
||||
globals?: object;
|
||||
/**
|
||||
* Same as `strictVariables` on LiquidOptions, but only for current render() call
|
||||
*/
|
||||
strictVariables?: boolean;
|
||||
}
|
||||
|
||||
interface NormalizedOptions extends LiquidOptions {
|
||||
root?: string[];
|
||||
partials?: string[];
|
||||
|
||||
Reference in New Issue
Block a user