Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Liquid

Hierarchy

  • Liquid

Index

Constructors

constructor

Properties

Private cache

cache: object

filters

filters: FilterMap

Private fs

fs: IFS

options

parser

parser: Parser

renderer

renderer: Render

tags

tags: TagMap

Private tokenizer

tokenizer: Tokenizer

Methods

_evalValue

  • _evalValue(str: string, ctx: Context): 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 opts: LiquidOptions
    • Optional sync: undefined | false | true

    Returns IterableIterator<string>

_parseFile

  • _parseFile(file: string, opts?: LiquidOptions, sync?: undefined | false | true): IterableIterator<any>
  • Parameters

    • file: string
    • Optional opts: LiquidOptions
    • Optional sync: undefined | false | true

    Returns IterableIterator<any>

_render

  • _render(tpl: Template[], scope?: undefined | object, opts?: LiquidOptions, sync?: undefined | false | true): IterableIterator<string>
  • Parameters

    • tpl: Template[]
    • Optional scope: undefined | object
    • Optional opts: LiquidOptions
    • Optional sync: undefined | false | true

    Returns IterableIterator<string>

evalValue

  • evalValue(str: string, ctx: Context): Promise<any>

evalValueSync

  • evalValueSync(str: string, ctx: Context): any

express

  • express(): (Anonymous function)

getTemplate

getTemplateSync

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

    Returns Template[]

parseAndRender

  • parseAndRender(html: string, scope?: undefined | object, opts?: LiquidOptions): Promise<string>
  • Parameters

    • html: string
    • Optional scope: undefined | object
    • Optional opts: LiquidOptions

    Returns Promise<string>

parseAndRenderSync

  • parseAndRenderSync(html: string, scope?: undefined | object, opts?: LiquidOptions): string
  • Parameters

    • html: string
    • Optional scope: undefined | object
    • Optional opts: LiquidOptions

    Returns string

parseFile

parseFileSync

plugin

  • plugin(plugin: function): void

registerFilter

registerTag

render

renderFile

  • renderFile(file: string, ctx?: undefined | object, opts?: LiquidOptions): Promise<string>
  • Parameters

    • file: string
    • Optional ctx: undefined | object
    • Optional opts: LiquidOptions

    Returns Promise<string>

renderFileSync

  • renderFileSync(file: string, ctx?: undefined | object, opts?: LiquidOptions): string
  • Parameters

    • file: string
    • Optional ctx: undefined | object
    • Optional opts: LiquidOptions

    Returns string

renderSync

Generated using TypeDoc