mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-16 12:50:38 -07:00
## [7.2.1](https://github.com/harttle/liquidjs/compare/v7.2.0...v7.2.1) (2019-02-22)
### Bug Fixes
* default length for truncate and truncatewords ([56c7992](https://github.com/harttle/liquidjs/commit/56c7992))
34 lines
1.6 KiB
TypeScript
34 lines
1.6 KiB
TypeScript
import Scope from './scope/scope';
|
|
import * as Types from './types';
|
|
import ITemplate from './template/itemplate';
|
|
import Render from './render/render';
|
|
import Parser from './parser/parser';
|
|
import ITagImplOptions from './template/tag/itag-impl-options';
|
|
import { isTruthy, isFalsy, evalExp, evalValue } from './render/syntax';
|
|
import { LiquidOptions, NormalizedFullOptions } from './liquid-options';
|
|
import { FilterImpl } from './template/filter/filter-impl';
|
|
export default class Liquid {
|
|
options: NormalizedFullOptions;
|
|
renderer: Render;
|
|
parser: Parser;
|
|
private cache;
|
|
private tokenizer;
|
|
constructor(opts?: LiquidOptions);
|
|
parse(html: string, filepath?: string): ITemplate[];
|
|
render(tpl: Array<ITemplate>, ctx?: object, opts?: LiquidOptions): Promise<string>;
|
|
parseAndRender(html: string, ctx?: object, opts?: LiquidOptions): Promise<string>;
|
|
getTemplate(file: string, opts?: LiquidOptions): Promise<any>;
|
|
renderFile(file: string, ctx?: object, opts?: LiquidOptions): Promise<string>;
|
|
evalValue(str: string, scope: Scope): any;
|
|
registerFilter(name: string, filter: FilterImpl): void;
|
|
registerTag(name: string, tag: ITagImplOptions): void;
|
|
plugin(plugin: (this: Liquid, L: typeof Liquid) => void): void;
|
|
express(): (this: any, filePath: string, ctx: object, cb: (err: Error | null, html?: string | undefined) => 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;
|
|
}
|