UNPKG

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.

15 lines (14 loc) 643 B
import { Template, TopLevelToken, Liquid, Tag, Emitter, TagToken, Context } from '..'; import { Parser } from '../parser'; import { Arguments, PartialScope } from '../template'; export default class extends Tag { private file; private currentFile?; private withVar?; private hash; constructor(token: TagToken, remainTokens: TopLevelToken[], liquid: Liquid, parser: Parser); render(ctx: Context, emitter: Emitter): Generator<unknown, void, unknown>; children(partials: boolean, sync: boolean): Generator<unknown, Template[]>; partialScope(): PartialScope | undefined; arguments(): Arguments; }