Constructors
Properties
Methods
_parseFile
- _parseFile(file, sync?, lookupType?, currentFile?): Generator<unknown, Template[], unknown>
Parameters
- file: string
Optionalsync: booleanOptionallookupType: LookupTypeOptionalcurrentFile: string
_parseLayoutFile
- _parseLayoutFile(file, sync?, currentFile?): Generator<unknown, Template[], string | Template[]>
Parameters
- file: string
Optionalsync: booleanOptionalcurrentFile: string
_parsePartialFile
- _parsePartialFile(file, sync?, currentFile?): Generator<unknown, Template[], string | Template[]>
Parameters
- file: string
Optionalsync: booleanOptionalcurrentFile: string
_renderFile
- _renderFile(file, ctx, renderFileOptions): Generator<any, any, unknown>
Returns Generator<any, any, unknown>
evalValue
- evalValue(str, scope?): Promise<any>
Parameters
- str: string
Optionalscope: object | Context
Returns Promise<any>
evalValueSync
- evalValueSync(str, scope?): any
Parameters
- str: string
Optionalscope: 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
fullVariables
- fullVariables(template, options?): Promise<string[]>
Returns Promise<string[]>
fullVariablesSync
- fullVariablesSync(template, options?): string[]
Returns string[]
globalFullVariables
- globalFullVariables(template, options?): Promise<string[]>
Returns Promise<string[]>
globalFullVariablesSync
- globalFullVariablesSync(template, options?): string[]
Returns string[]
globalVariableSegments
- globalVariableSegments(template, options?): Promise<SegmentArray[]>
globalVariableSegmentsSync
- globalVariableSegmentsSync(template, options?): SegmentArray[]
globalVariables
- globalVariables(template, options?): Promise<string[]>
Returns Promise<string[]>
globalVariablesSync
- globalVariablesSync(template, options?): string[]
Returns string[]
parse
- parse(html, filepath?): Template[]
Parameters
- html: string
Optionalfilepath: 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
Optionalscope: objectOptionalrenderOptions: RenderOptions
renderSync
- renderSync(tpl, scope?, renderOptions?): any
Returns any
unregisterFilter
- unregisterFilter(name): void
Returns void
variableSegments
- variableSegments(template, options?): Promise<SegmentArray[]>
variables
- variables(template, options?): Promise<string[]>
Returns Promise<string[]>
variablesSync
- variablesSync(template, options?): string[]
Returns string[]
Deprecated
will be removed. In tags use
this.parserinstead