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

Static Types

Types: "types" = Types

Static default

default: Liquid = Liquid

Static evalExp

evalExp: evalExp = evalExp

Static evalValue

evalValue: evalValue = evalValue

Static isFalsy

isFalsy: isFalsy = isFalsy

Static isTruthy

isTruthy: isTruthy = isTruthy

Methods

evalValue

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

express

  • express(): (Anonymous function)

getTemplate

parse

  • parse(html: string, filepath?: undefined | string): ITemplate[]
  • Parameters

    • html: string
    • Optional filepath: undefined | string

    Returns ITemplate[]

parseAndRender

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

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

    Returns Promise<string>

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>

Generated using TypeDoc