brazejs
Version:
Liquid template engine for the Braze variant by pure JavaScript: compatible to Braze, easy to extend.
15 lines (14 loc) • 451 B
TypeScript
import Context from '../context/context';
export default class Value {
private strictFilters;
private initial;
private filters;
/**
* @param str value string, like: "i have a dream | truncate: 3
*/
constructor(str: string, strictFilters: boolean);
private parseFilters;
private parseFilter;
value(ctx: Context): Promise<any>;
static tokenize(str: string): Array<'|' | ',' | ':' | string>;
}