liquidjs
Version:
A simple, expressive and safe Shopify / Github Pages compatible template engine in pure JavaScript.
11 lines (10 loc) • 601 B
TypeScript
import { Context } from '../../context/context';
import { TagToken } from '../../tokens/tag-token';
import { TopLevelToken } from '../../tokens/toplevel-token';
import { TagImpl } from './tag-impl';
import { HashValue } from '../../template/tag/hash';
import { Emitter } from '../../emitters/emitter';
export interface TagImplOptions {
parse?: (this: TagImpl, token: TagToken, remainingTokens: TopLevelToken[]) => void;
render: (this: TagImpl, ctx: Context, emitter: Emitter, hash: HashValue) => void | string | Promise<void | string> | Generator<unknown, void | string, unknown>;
}