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.

19 lines (18 loc) 642 B
import { Context } from '../context/context'; import { Tokenizer } from '../parser/tokenizer'; import { Token } from '../tokens/token'; type HashValueTokens = Record<string, Token | undefined>; /** * Key-Value Pairs Representing Tag Arguments * Example: * For the markup `, foo:'bar', coo:2 reversed %}`, * hash['foo'] === 'bar' * hash['coo'] === 2 * hash['reversed'] === undefined */ export declare class Hash { hash: HashValueTokens; constructor(input: string | Tokenizer, jekyllStyle?: boolean | string); render(ctx: Context): Generator<unknown, Record<string, any>, unknown>; } export {};