Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
70 changed files
with
3,113 additions
and
2,516 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
declare const _default: { | ||
'date': (v: any, arg: any) => any; | ||
}; | ||
export default _default; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
declare const _default: { | ||
'default': (v: any, arg: any) => any; | ||
}; | ||
export default _default; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
declare const _default: { | ||
'url_decode': (x: any) => any; | ||
'url_encode': (x: any) => any; | ||
}; | ||
export default _default; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
declare const _default: { | ||
parse: (token: any) => void; | ||
render: (scope: any) => Promise<string>; | ||
}; | ||
export default _default; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
declare const _default: { | ||
parse: (token: any, remainTokens: any) => void; | ||
render: (scope: any) => Promise<any>; | ||
}; | ||
export default _default; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
declare const _default: { | ||
render: () => Promise<never>; | ||
}; | ||
export default _default; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
declare const _default: { | ||
parse: (tagToken: any, remainTokens: any) => void; | ||
render: (scope: any) => any; | ||
}; | ||
export default _default; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
declare const _default: { | ||
parse: (tagToken: any, remainTokens: any) => void; | ||
}; | ||
export default _default; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
declare const _default: { | ||
render: () => Promise<never>; | ||
}; | ||
export default _default; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
declare const _default: { | ||
parse: (tagToken: any) => void; | ||
render: (scope: any) => any; | ||
}; | ||
export default _default; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
declare const _default: { | ||
parse: (tagToken: any, remainTokens: any) => void; | ||
render: (scope: any) => any; | ||
}; | ||
export default _default; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
declare const _default: { | ||
parse: (token: any) => void; | ||
render: (scope: any, hash: any) => Promise<any>; | ||
}; | ||
export default _default; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
declare const _default: { | ||
parse: (token: any) => void; | ||
render: (scope: any) => any; | ||
}; | ||
export default _default; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import ITagImplOptions from 'src/template/tag/itag-impl-options'; | ||
declare const tags: { | ||
[key: string]: ITagImplOptions; | ||
}; | ||
export default tags; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
declare const _default: { | ||
parse: (token: any, remainTokens: any) => void; | ||
render: (scope: any, hash: any) => Promise<any>; | ||
}; | ||
export default _default; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
declare const _default: { | ||
parse: (tagToken: any, remainTokens: any) => void; | ||
render: () => any; | ||
}; | ||
export default _default; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
declare const _default: { | ||
parse: (tagToken: any, remainTokens: any) => void; | ||
render: (scope: any, hash: any) => Promise<string>; | ||
}; | ||
export default _default; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
declare const _default: { | ||
parse: (tagToken: any, remainTokens: any) => void; | ||
render: (scope: any) => any; | ||
}; | ||
export default _default; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import IFS from './ifs'; | ||
declare const _default: IFS; | ||
export default _default; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import IFS from './ifs'; | ||
declare const fs: IFS; | ||
export default fs; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; |
Oops, something went wrong.