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

Method parseAndRenderSync

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

Source from the content-addressed store, hash-verified

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 }
58
59 public _parsePartialFile (file: string, sync?: boolean, currentFile?: string) {
60 return new Parser(this).parseFile(file, sync, LookupType.Partials, currentFile)

Callers 15

renderFunction · 0.95
renderLegacyFunction · 0.95
error.spec.tsFile · 0.80
url.spec.tsFile · 0.80
misc.spec.tsFile · 0.80
string.spec.tsFile · 0.80
date.spec.tsFile · 0.80
html.spec.tsFile · 0.80
array.spec.tsFile · 0.80
liquid.spec.tsFile · 0.80
dos.spec.tsFile · 0.80
assign.spec.tsFile · 0.80

Calls 2

_parseAndRenderMethod · 0.95
toValueSyncFunction · 0.90

Tested by 1

fnFunction · 0.64