UNPKG

brazejs

Version:

Liquid template engine for the Braze variant by pure JavaScript: compatible to Braze, easy to extend.

23 lines (22 loc) 715 B
import { Drop } from '../drop/drop'; import { NormalizedFullOptions } from '../liquid-options'; import { Scope } from './scope'; export default class Context { opts: NormalizedFullOptions; environments: Scope; private scopes; private registers; constructor(ctx?: object, opts?: NormalizedFullOptions); getRegister(key: string, defaultValue?: {}): any; setRegister(key: string, value: any): any; getAll(): Scope; get(path: string): Promise<Scope>; push(ctx: object): number; pop(): { [key: string]: any; toLiquid?: (() => any) | undefined; } | Drop | undefined; front(): Scope; private findScope; private parseProp; }