Skip to content

Commit

Permalink
7.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
harttle committed Feb 19, 2019
1 parent cbebb00 commit 29f5330
Show file tree
Hide file tree
Showing 70 changed files with 3,113 additions and 2,516 deletions.
12 changes: 12 additions & 0 deletions dist/builtin/filters/array.d.ts
@@ -0,0 +1,12 @@
declare const _default: {
'join': (v: any, arg: any) => any;
'last': (v: any) => any;
'first': (v: any) => any;
'map': (arr: any, arg: any) => any;
'reverse': (v: any) => any;
'sort': (v: any, arg: any) => any;
'size': (v: any) => any;
'slice': (v: any, begin: any, length: any) => any;
'uniq': (arr: any) => any;
};
export default _default;
4 changes: 4 additions & 0 deletions dist/builtin/filters/date.d.ts
@@ -0,0 +1,4 @@
declare const _default: {
'date': (v: any, arg: any) => any;
};
export default _default;
8 changes: 8 additions & 0 deletions dist/builtin/filters/html.d.ts
@@ -0,0 +1,8 @@
declare function escape(str: any): string;
declare const _default: {
'escape': typeof escape;
'escape_once': (str: any) => string;
'newline_to_br': (v: any) => any;
'strip_html': (v: any) => string;
};
export default _default;
46 changes: 46 additions & 0 deletions dist/builtin/filters/index.d.ts
@@ -0,0 +1,46 @@
declare const _default: {
'join': (v: any, arg: any) => any;
'last': (v: any) => any;
'first': (v: any) => any;
'map': (arr: any, arg: any) => any;
'reverse': (v: any) => any;
'sort': (v: any, arg: any) => any;
'size': (v: any) => any;
'slice': (v: any, begin: any, length: any) => any;
'uniq': (arr: any) => any;
'default': (v: any, arg: any) => any;
'date': (v: any, arg: any) => any;
'url_decode': (x: any) => any;
'url_encode': (x: any) => any;
'abs': (v: any) => number;
'ceil': (v: any) => number;
'divided_by': (v: any, arg: any) => number;
'floor': (v: any) => number;
'minus': (l: any, r: any) => any;
'modulo': (l: any, r: any) => any;
'round': (v: any, arg: any) => number;
'plus': (l: any, r: any) => any;
'times': (v: any, arg: any) => number;
'append': (v: any, arg: any) => any;
'prepend': (v: any, arg: any) => any;
'capitalize': (str: any) => string;
'concat': (v: any, arg: any) => any;
'lstrip': (v: any) => string;
'downcase': (v: any) => any;
'upcase': (str: any) => string;
'remove': (v: any, arg: any) => any;
'remove_first': (v: any, l: any) => any;
'replace': (v: any, pattern: any, replacement: any) => string;
'replace_first': (v: any, arg1: any, arg2: any) => string;
'rstrip': (str: any) => string;
'split': (v: any, arg: any) => string[];
'strip': (v: any) => string;
'strip_newlines': (v: any) => string;
'truncate': (v: any, l: any, o: any) => any;
'truncatewords': (v: any, l: any, o: any) => any;
'escape': (str: any) => string;
'escape_once': (str: any) => string;
'newline_to_br': (v: any) => any;
'strip_html': (v: any) => string;
};
export default _default;
12 changes: 12 additions & 0 deletions dist/builtin/filters/math.d.ts
@@ -0,0 +1,12 @@
declare const _default: {
'abs': (v: any) => number;
'ceil': (v: any) => number;
'divided_by': (v: any, arg: any) => number;
'floor': (v: any) => number;
'minus': (l: any, r: any) => any;
'modulo': (l: any, r: any) => any;
'round': (v: any, arg: any) => number;
'plus': (l: any, r: any) => any;
'times': (v: any, arg: any) => number;
};
export default _default;
4 changes: 4 additions & 0 deletions dist/builtin/filters/object.d.ts
@@ -0,0 +1,4 @@
declare const _default: {
'default': (v: any, arg: any) => any;
};
export default _default;
20 changes: 20 additions & 0 deletions dist/builtin/filters/string.d.ts
@@ -0,0 +1,20 @@
declare const _default: {
'append': (v: any, arg: any) => any;
'prepend': (v: any, arg: any) => any;
'capitalize': (str: any) => string;
'concat': (v: any, arg: any) => any;
'lstrip': (v: any) => string;
'downcase': (v: any) => any;
'upcase': (str: any) => string;
'remove': (v: any, arg: any) => any;
'remove_first': (v: any, l: any) => any;
'replace': (v: any, pattern: any, replacement: any) => string;
'replace_first': (v: any, arg1: any, arg2: any) => string;
'rstrip': (str: any) => string;
'split': (v: any, arg: any) => string[];
'strip': (v: any) => string;
'strip_newlines': (v: any) => string;
'truncate': (v: any, l: any, o: any) => any;
'truncatewords': (v: any, l: any, o: any) => any;
};
export default _default;
5 changes: 5 additions & 0 deletions dist/builtin/filters/url.d.ts
@@ -0,0 +1,5 @@
declare const _default: {
'url_decode': (x: any) => any;
'url_encode': (x: any) => any;
};
export default _default;
5 changes: 5 additions & 0 deletions dist/builtin/tags/assign.d.ts
@@ -0,0 +1,5 @@
declare const _default: {
parse: (token: any) => void;
render: (scope: any) => Promise<string>;
};
export default _default;
5 changes: 5 additions & 0 deletions dist/builtin/tags/block.d.ts
@@ -0,0 +1,5 @@
declare const _default: {
parse: (token: any, remainTokens: any) => void;
render: (scope: any) => Promise<any>;
};
export default _default;
4 changes: 4 additions & 0 deletions dist/builtin/tags/break.d.ts
@@ -0,0 +1,4 @@
declare const _default: {
render: () => Promise<never>;
};
export default _default;
8 changes: 8 additions & 0 deletions dist/builtin/tags/capture.d.ts
@@ -0,0 +1,8 @@
import TagToken from 'src/parser/tag-token';
import Token from 'src/parser/token';
import Scope from 'src/scope/scope';
declare const _default: {
parse: (tagToken: TagToken, remainTokens: Token[]) => void;
render: (scope: Scope) => Promise<void>;
};
export default _default;
5 changes: 5 additions & 0 deletions dist/builtin/tags/case.d.ts
@@ -0,0 +1,5 @@
declare const _default: {
parse: (tagToken: any, remainTokens: any) => void;
render: (scope: any) => any;
};
export default _default;
4 changes: 4 additions & 0 deletions dist/builtin/tags/comment.d.ts
@@ -0,0 +1,4 @@
declare const _default: {
parse: (tagToken: any, remainTokens: any) => void;
};
export default _default;
4 changes: 4 additions & 0 deletions dist/builtin/tags/continue.d.ts
@@ -0,0 +1,4 @@
declare const _default: {
render: () => Promise<never>;
};
export default _default;
5 changes: 5 additions & 0 deletions dist/builtin/tags/cycle.d.ts
@@ -0,0 +1,5 @@
declare const _default: {
parse: (tagToken: any) => void;
render: (scope: any) => any;
};
export default _default;
7 changes: 7 additions & 0 deletions dist/builtin/tags/decrement.d.ts
@@ -0,0 +1,7 @@
import TagToken from 'src/parser/tag-token';
import Scope from 'src/scope/scope';
declare const _default: {
parse: (token: TagToken) => void;
render: (scope: Scope) => number;
};
export default _default;
7 changes: 7 additions & 0 deletions dist/builtin/tags/for.d.ts
@@ -0,0 +1,7 @@
declare function parse(tagToken: any, remainTokens: any): void;
declare function render(scope: any, hash: any): Promise<any>;
declare const _default: {
parse: typeof parse;
render: typeof render;
};
export default _default;
5 changes: 5 additions & 0 deletions dist/builtin/tags/if.d.ts
@@ -0,0 +1,5 @@
declare const _default: {
parse: (tagToken: any, remainTokens: any) => void;
render: (scope: any) => any;
};
export default _default;
5 changes: 5 additions & 0 deletions dist/builtin/tags/include.d.ts
@@ -0,0 +1,5 @@
declare const _default: {
parse: (token: any) => void;
render: (scope: any, hash: any) => Promise<any>;
};
export default _default;
5 changes: 5 additions & 0 deletions dist/builtin/tags/increment.d.ts
@@ -0,0 +1,5 @@
declare const _default: {
parse: (token: any) => void;
render: (scope: any) => any;
};
export default _default;
5 changes: 5 additions & 0 deletions dist/builtin/tags/index.d.ts
@@ -0,0 +1,5 @@
import ITagImplOptions from 'src/template/tag/itag-impl-options';
declare const tags: {
[key: string]: ITagImplOptions;
};
export default tags;
5 changes: 5 additions & 0 deletions dist/builtin/tags/layout.d.ts
@@ -0,0 +1,5 @@
declare const _default: {
parse: (token: any, remainTokens: any) => void;
render: (scope: any, hash: any) => Promise<any>;
};
export default _default;
5 changes: 5 additions & 0 deletions dist/builtin/tags/raw.d.ts
@@ -0,0 +1,5 @@
declare const _default: {
parse: (tagToken: any, remainTokens: any) => void;
render: () => any;
};
export default _default;
5 changes: 5 additions & 0 deletions dist/builtin/tags/tablerow.d.ts
@@ -0,0 +1,5 @@
declare const _default: {
parse: (tagToken: any, remainTokens: any) => void;
render: (scope: any, hash: any) => Promise<string>;
};
export default _default;
5 changes: 5 additions & 0 deletions dist/builtin/tags/unless.d.ts
@@ -0,0 +1,5 @@
declare const _default: {
parse: (tagToken: any, remainTokens: any) => void;
render: (scope: any) => any;
};
export default _default;
3 changes: 3 additions & 0 deletions dist/fs/browser.d.ts
@@ -0,0 +1,3 @@
import IFS from './ifs';
declare const _default: IFS;
export default _default;
5 changes: 5 additions & 0 deletions dist/fs/ifs.d.ts
@@ -0,0 +1,5 @@
export default interface IFS {
exists: (filepath?: string) => Promise<boolean>;
readFile: (filepath: string) => Promise<string>;
resolve: (root: string, file: string, ext: string) => string;
}
3 changes: 3 additions & 0 deletions dist/fs/node.d.ts
@@ -0,0 +1,3 @@
import IFS from './ifs';
declare const fs: IFS;
export default fs;
29 changes: 29 additions & 0 deletions dist/liquid-options.d.ts
@@ -0,0 +1,29 @@
export interface LiquidOptions {
/** `root` is a directory or an array of directories to resolve layouts and includes, as well as the filename passed in when calling `.renderFile()`. If an array, the files are looked up in the order they occur in the array. Defaults to `["."]` */
root?: string | string[];
/** `extname` is used to lookup the template file when filepath doesn't include an extension name. Eg: setting to `".html"` will allow including file by basename. Defaults to `""`. */
extname?: string;
/** `cache` indicates whether or not to cache resolved templates. Defaults to `false`. */
cache?: boolean;
/** `dynamicPartials`: if set, treat `<filepath>` parameter in `{%include filepath %}`, `{%layout filepath%}` as a variable, otherwise as a literal value. Defaults to `true`. */
dynamicPartials?: boolean;
/** `strict_filters` is used to enable strict filter existence. If set to `false`, undefined filters will be rendered as empty string. Otherwise, undefined filters will cause an exception. Defaults to `false`. */
strict_filters?: boolean;
/** `strict_variables` is used to enable strict variable derivation. If set to `false`, undefined variables will be rendered as empty string. Otherwise, undefined variables will cause an exception. Defaults to `false`. */
strict_variables?: boolean;
/** `trim_tag_right` is used to strip blank characters (including ` `, `\t`, and `\r`) from the right of tags (`{% %}`) until `\n` (inclusive). Defaults to `false`. */
trim_tag_right?: boolean;
/** `trim_tag_left` is similar to `trim_tag_right`, whereas the `\n` is exclusive. Defaults to `false`. See Whitespace Control for details. */
trim_tag_left?: boolean;
/** ``trim_value_right` is used to strip blank characters (including ` `, `\t`, and `\r`) from the right of values (`{{ }}`) until `\n` (inclusive). Defaults to `false`. */
trim_value_right?: boolean;
/** `trim_value_left` is similar to `trim_value_right`, whereas the `\n` is exclusive. Defaults to `false`. See Whitespace Control for details. */
trim_value_left?: boolean;
/** `greedy` is used to specify whether `trim_left`/`trim_right` is greedy. When set to `true`, all consecutive blank characters including `\n` will be trimed regardless of line breaks. Defaults to `true`. */
greedy?: boolean;
}
export interface NormalizedOptions extends LiquidOptions {
root?: string[];
}
export declare const defaultOptions: NormalizedOptions;
export declare function normalize(options: LiquidOptions): NormalizedOptions;

0 comments on commit 29f5330

Please sign in to comment.