Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "lib/render"

Index

Functions

Functions

render

  • Renders a context using {{ mustache }} rendering engine. By default, mustache escapes HTML characters. Use the triple mustache syntax {{{ variable }}} to avoid escaping.

    see

    https://mustache.github.io/

    Parameters

    • template: string

      the mustache template to render

    • context: IContextImmutable

      the conversation context to use for the rendering. Will be sanitized to only strings, numbers and nested contexts for safety.

    Returns string

    the rendered template