liquidjs
Version:
A simple, expressive, extensible Liquid template engine for JavaScript — Shopify, Jekyll and GitHub Pages compatible, for Node.js, browsers, and the CLI, with TypeScript support.
16 lines (15 loc) • 586 B
TypeScript
import { Filter } from './filter';
import { Expression } from '../render';
import type { FilteredValueToken } from '../tokens';
import type { Liquid } from '../liquid';
import type { Context } from '../context';
export declare class Value {
readonly filters: Filter[];
readonly initial: Expression;
/**
* @param str the value to be valuated, eg.: "foobar" | truncate: 3
*/
constructor(input: string | FilteredValueToken, liquid: Liquid);
value(ctx: Context, lenient?: boolean): Generator<unknown, unknown, unknown>;
private getFilter;
}