Skip to main content
class Liquid
import { Liquid } from "https://deno.land/x/shop@0.0.1/deps.ts";

Constructors

new
Liquid(opts?: LiquidOptions)

Properties

readonly
filters: FilterMap
readonly
options: NormalizedFullOptions
readonly
parser: Parser
readonly
renderer: Render
readonly
tags: TagMap

Methods

_evalValue(str: string, ctx: Context): IterableIterator<any>
_parseAndRender(
html: string,
scope: object | undefined,
renderOptions: RenderOptions,
): IterableIterator<any>
_parseLayoutFile(
file: string,
sync?: boolean,
currentFile?: string,
): Generator<unknown, Template[], string | Template[]>
_parsePartialFile(
file: string,
sync?: boolean,
currentFile?: string,
): Generator<unknown, Template[], string | Template[]>
_render(
tpl: Template[],
scope: object | undefined,
renderOptions: RenderOptions,
): IterableIterator<any>
evalValue(str: string, ctx: Context): Promise<any>
evalValueSync(str: string, ctx: Context): any
express(): (
this: any,
filePath: string,
ctx: object,
callback: (err: Error | null, rendered: string) => void,
) => void
parse(html: string, filepath?: string): Template[]
parseAndRender(
html: string,
scope?: object,
renderOptions?: RenderOptions,
): Promise<any>
parseAndRenderSync(
html: string,
scope?: object,
renderOptions?: RenderOptions,
): any
parseFile(file: string): Promise<Template[]>
parseFileSync(file: string): Template[]
plugin(plugin: (this: Liquid, L: Liquid) => void): void
registerFilter(name: string, filter: FilterImplOptions): void
registerTag(name: string, tag: TagImplOptions): void
render(
tpl: Template[],
scope?: object,
renderOptions?: RenderOptions,
): Promise<any>
renderFile(
file: string,
ctx?: object,
renderOptions?: RenderOptions,
): Promise<any>
renderFileSync(
file: string,
ctx?: object,
renderOptions?: RenderOptions,
): any
renderFileToNodeStream(
file: string,
scope?: object,
renderOptions?: RenderOptions,
): Promise<NodeJS.ReadableStream>
renderSync(
tpl: Template[],
scope?: object,
renderOptions?: RenderOptions,
): any
renderToNodeStream(
tpl: Template[],
scope?: object,
renderOptions?: RenderOptions,
): NodeJS.ReadableStream