Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Snippet

Index

Methods

  • detailed(template: string, query: string, variables?: object): Promise<any>
  • Returns the rendered HTML of a snippet and the query response

    Parameters

    • template: string

      The template to be rendered

    • query: string

      The query to be used

    • Optional variables: object

      The query variables to be used

    Returns Promise<any>

  • multi(templates: string[], query: string, variables?: object): Promise<any>
  • Renders HTML from multiple snippets.

    Parameters

    • templates: string[]

      An array of templates to be rendered

    • query: string

      The query to be used

    • Optional variables: object

    Returns Promise<any>

  • render(template: string, query: string, variables?: object): Promise<string>
  • Renders the html of a snippet

    Parameters

    • template: string

      The template to be rendered

    • query: string

      The query to be used

    • Optional variables: object

      The query variables to be used

    Returns Promise<string>

Generated using TypeDoc