(html: string, scope?: Context | object, renderOptions?: RenderOptions)
| 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 | } |