Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Liquid

Hierarchy

  • Liquid

Index

Constructors

constructor

Properties

Private cache

cache: object

Private fs

fs: IFS

options

parser

parser: Parser

renderer

renderer: Render

Private tokenizer

tokenizer: Tokenizer

Methods

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): ITemplate[]
  • Parameters

    • html: string
    • Optional filepath: undefined | string

    Returns ITemplate[]

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

renderSync

Private respectCache

Private setCache

  • setCache<T>(filepath: string, tpl: T): T

Generated using TypeDoc