UNPKG

brazejs

Version:

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

10 lines (9 loc) 431 B
import Context from '../../context/context'; import TagToken from '../../parser/tag-token'; import Token from '../../parser/token'; import Hash from '../../template/tag/hash'; import ITagImpl from './itag-impl'; export default interface ITagImplOptions { parse?: (this: ITagImpl, token: TagToken, remainingTokens: Array<Token>) => void; render?: (this: ITagImpl, ctx: Context, hash: Hash) => any | Promise<any>; }