UNPKG

liquidjs

Version:

A simple, expressive and safe Shopify / Github Pages compatible template engine in pure JavaScript.

10 lines (9 loc) 482 B
import { Token, QuotedToken } from '../tokens'; import type { Context } from '../context'; export declare class Expression { private postfix; constructor(tokens: IterableIterator<Token>); evaluate(ctx: Context, lenient?: boolean): Generator<unknown, unknown, unknown>; } export declare function evalToken(token: Token | undefined, ctx: Context, lenient?: boolean): IterableIterator<unknown>; export declare function evalQuotedToken(token: QuotedToken): string;