MCPcopy
hub / github.com/harttle/liquidjs / parseAndRender

Method parseAndRender

src/liquid.ts:52–54  ·  view source on GitHub ↗
(html: string, scope?: Context | object, renderOptions?: RenderOptions)

Source from the content-addressed store, hash-verified

50 return this._render(tpl, scope, renderOptions)
51 }
52 public async parseAndRender (html: string, scope?: Context | object, renderOptions?: RenderOptions): Promise<any> {
53 return toPromise(this._parseAndRender(html, scope, { ...renderOptions, sync: false }))
54 }
55 public parseAndRenderSync (html: string, scope?: Context | object, renderOptions?: RenderOptions): any {
56 return toValueSync(this._parseAndRender(html, scope, { ...renderOptions, sync: true }))
57 }

Callers 15

testFunction · 0.80
testFunction · 0.80
layoutFunction · 0.80
blank-drop.spec.tsFile · 0.80
drop.spec.tsFile · 0.80
null-drop.spec.tsFile · 0.80
empty-drop.spec.tsFile · 0.80
error.spec.tsFile · 0.80
math.spec.tsFile · 0.80
misc.spec.tsFile · 0.80
string.spec.tsFile · 0.80
base64.spec.tsFile · 0.80

Calls 2

_parseAndRenderMethod · 0.95
toPromiseFunction · 0.90

Tested by 4

testFunction · 0.64
testFunction · 0.64
renderFunction · 0.64
testFunction · 0.64