mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-18 22:10:41 -07:00
refactor: Tag class support in registerTag()
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
enum BlockMode {
|
||||
export enum BlockMode {
|
||||
/* store rendered html into blocks */
|
||||
OUTPUT,
|
||||
/* output rendered html directly */
|
||||
STORE
|
||||
}
|
||||
|
||||
export default BlockMode
|
||||
|
||||
@@ -2,9 +2,7 @@ import { Drop } from '../drop/drop'
|
||||
import { __assign } from 'tslib'
|
||||
import { NormalizedFullOptions, defaultOptions, RenderOptions } from '../liquid-options'
|
||||
import { Scope } from './scope'
|
||||
import { isArray, isNil, isString, isFunction, toLiquid } from '../util/underscore'
|
||||
import { InternalUndefinedVariableError } from '../util/error'
|
||||
import { toValueSync } from '../util/async'
|
||||
import { isArray, isNil, isString, isFunction, toLiquid, InternalUndefinedVariableError, toValueSync } from '../util'
|
||||
|
||||
type PropertyKey = string | number;
|
||||
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
export * from './context'
|
||||
export * from './scope'
|
||||
export * from './block-mode'
|
||||
@@ -1,8 +1,7 @@
|
||||
import { Drop } from '../drop/drop'
|
||||
|
||||
export interface PlainObject {
|
||||
[key: string]: any;
|
||||
interface ScopeObject extends Record<string, any> {
|
||||
toLiquid?: () => any;
|
||||
}
|
||||
|
||||
export type Scope = PlainObject | Drop
|
||||
export type Scope = ScopeObject | Drop
|
||||
|
||||
Reference in New Issue
Block a user