Constructors
Properties
Methods
_parseFile
- _parseFile(file, sync?, lookupType?, currentFile?): Generator<unknown, Template[], unknown>
Parameters
- file: string
Optional
sync: booleanOptional
lookupType: LookupTypeOptional
currentFile: string
_parseLayoutFile
- _parseLayoutFile(file, sync?, currentFile?): Generator<unknown, Template[], string | Template[]>
Parameters
- file: string
Optional
sync: booleanOptional
currentFile: string
_parsePartialFile
- _parsePartialFile(file, sync?, currentFile?): Generator<unknown, Template[], string | Template[]>
Parameters
- file: string
Optional
sync: booleanOptional
currentFile: string
_renderFile
- _renderFile(file, ctx, renderFileOptions): Generator<any, any, unknown>
Returns Generator<any, any, unknown>
evalValue
- evalValue(str, scope?): Promise<any>
Parameters
- str: string
Optional
scope: object | Context
Returns Promise<any>
evalValueSync
- evalValueSync(str, scope?): any
Parameters
- str: string
Optional
scope: object | Context
Returns any
express
- express(): ((this: any, filePath: string, ctx: object, callback: ((err: null | Error, rendered: string) => void)) => void)
Returns ((this: any, filePath: string, ctx: object, callback: ((err: null | Error, rendered: string) => void)) => void)
- (this, filePath, ctx, callback): void
Parameters
- this: any
- filePath: string
- ctx: object
- callback: ((err: null | Error, rendered: string) => void)
- (err, rendered): void
Parameters
- err: null | Error
- rendered: string
Returns void
Returns void
parse
- parse(html, filepath?): Template[]
Parameters
- html: string
Optional
filepath: string
parseAndRender
- parseAndRender(html, scope?, renderOptions?): Promise<any>
Returns Promise<any>
parseAndRenderSync
- parseAndRenderSync(html, scope?, renderOptions?): any
Returns any
parseFileSync
- parseFileSync(file, lookupType?): Template[]
plugin
- plugin(plugin): void
Parameters
- plugin: ((this: Liquid, L: typeof Liquid) => void)
- (this, L): void
Returns void
Returns void
registerFilter
- registerFilter(name, filter): void
Returns void
registerTag
- registerTag(name, tag): void
Returns void
render
- render(tpl, scope?, renderOptions?): Promise<any>
Returns Promise<any>
renderFile
- renderFile(file, ctx?, renderFileOptions?): Promise<any>
Returns Promise<any>
renderFileSync
- renderFileSync(file, ctx?, renderFileOptions?): any
Returns any
renderFileToNodeStream
- renderFileToNodeStream(file, scope?, renderOptions?): Promise<ReadableStream>
Parameters
- file: string
Optional
scope: objectOptional
renderOptions: RenderOptions
renderSync
- renderSync(tpl, scope?, renderOptions?): any
Returns any
Deprecated
will be removed. In tags use
this.parser
instead