mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-16 12:50:38 -07:00
# [7.2.0](https://github.com/harttle/liquidjs/compare/v7.1.0...v7.2.0) (2019-02-20)
### Features
* override output/tag delimiter, fixes [#54](https://github.com/harttle/liquidjs/issues/54) ([d20a043](https://github.com/harttle/liquidjs/commit/d20a043))
31 lines
1.4 KiB
TypeScript
31 lines
1.4 KiB
TypeScript
import Scope from './scope/scope';
|
|
import * as Types from './types';
|
|
import ITemplate from './template/itemplate';
|
|
import ITagImplOptions from './template/tag/itag-impl-options';
|
|
import { isTruthy, isFalsy, evalExp, evalValue } from './render/syntax';
|
|
import { LiquidOptions, NormalizedFullOptions } from './liquid-options';
|
|
export default class Liquid {
|
|
options: NormalizedFullOptions;
|
|
private cache;
|
|
private parser;
|
|
private renderer;
|
|
private tokenizer;
|
|
constructor(opts?: LiquidOptions);
|
|
parse(html: string, filepath?: string): any[];
|
|
render(tpl: Array<ITemplate>, ctx?: object, opts?: LiquidOptions): Promise<string>;
|
|
parseAndRender(html: string, ctx?: object, opts?: LiquidOptions): Promise<string>;
|
|
getTemplate(file: any, opts?: LiquidOptions): Promise<any>;
|
|
renderFile(file: any, ctx?: object, opts?: LiquidOptions): Promise<string>;
|
|
evalValue(str: string, scope: Scope): any;
|
|
registerFilter(name: any, filter: any): void;
|
|
registerTag(name: string, tag: ITagImplOptions): void;
|
|
plugin(plugin: any): any;
|
|
express(): (filePath: string, ctx: object, cb: (err: Error, html?: string) => void) => void;
|
|
static default: typeof Liquid;
|
|
static isTruthy: typeof isTruthy;
|
|
static isFalsy: typeof isFalsy;
|
|
static evalExp: typeof evalExp;
|
|
static evalValue: typeof evalValue;
|
|
static Types: typeof Types;
|
|
}
|