Methods
detailed
- detailed(template: string, query: string, variables?: object): Promise<any>
Parameters
template: string
query: string
Optional variables: object
Returns Promise<any>
multi
- multi(templates: string[], query: string, variables?: object): Promise<any>
Parameters
templates: string[]
query: string
Optional variables: object
Returns Promise<any>
render
- render(template: string, query: string, variables?: object): Promise<string>
Parameters
template: string
query: string
Optional variables: object
Returns Promise<string>
Returns the rendered HTML of a snippet and the query response