Properties
Private cache
cache: object
Methods
_evalValue
- _evalValue(str: string, ctx: Context): IterableIterator<any>
-
Parameters
Returns IterableIterator<any>
_parseAndRender
- _parseAndRender(html: string, scope?: undefined | object, opts?: LiquidOptions, sync?: undefined | false | true): IterableIterator<string>
-
Parameters
-
html: string
-
Optional scope: undefined | object
-
-
Optional sync: undefined | false | true
Returns IterableIterator<string>
_parseFile
- _parseFile(file: string, opts?: LiquidOptions, sync?: undefined | false | true): IterableIterator<any>
-
Parameters
-
file: string
-
-
Optional sync: undefined | false | true
Returns IterableIterator<any>
_render
- _render(tpl: Template[], scope?: undefined | object, opts?: LiquidOptions, sync?: undefined | false | true): IterableIterator<string>
-
Parameters
-
-
Optional scope: undefined | object
-
-
Optional sync: undefined | false | true
Returns IterableIterator<string>
evalValue
- evalValue(str: string, ctx: Context): Promise<any>
-
Parameters
Returns Promise<any>
evalValueSync
- evalValueSync(str: string, ctx: Context): any
express
- express(): (Anonymous function)
-
Returns (Anonymous function)
Private lookupError
- lookupError(file: string, roots: string[]): any
-
Parameters
-
file: string
-
roots: string[]
Returns any
parse
- parse(html: string, filepath?: undefined | string): Template[]
-
Parameters
-
html: string
-
Optional filepath: undefined | string
parseAndRender
- parseAndRender(html: string, scope?: undefined | object, opts?: LiquidOptions): Promise<string>
-
Parameters
-
html: string
-
Optional scope: undefined | object
-
Returns Promise<string>
parseAndRenderSync
- parseAndRenderSync(html: string, scope?: undefined | object, opts?: LiquidOptions): string
-
Parameters
-
html: string
-
Optional scope: undefined | object
-
Returns string
plugin
- plugin(plugin: function): void
render
-
Parameters
-
-
Optional scope: undefined | object
-
Returns Promise<string>
renderFile
- renderFile(file: string, ctx?: undefined | object, opts?: LiquidOptions): Promise<string>
-
Parameters
-
file: string
-
Optional ctx: undefined | object
-
Returns Promise<string>
renderFileSync
- renderFileSync(file: string, ctx?: undefined | object, opts?: LiquidOptions): string
-
Parameters
-
file: string
-
Optional ctx: undefined | object
-
Returns string
renderSync
-
Parameters
-
-
Optional scope: undefined | object
-
Returns string
use parseFile instead