Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • EamuseSend

Index

Methods

  • Send plain javascript object. When constructing objects, make sure to use helper K:

    {
    outer: K.ATTR({ status: "1" }, {
    inner: K.ITEM("s32", 1)
    })
    }

    Or follow xml-like format manually:

    {
    outer: {
    "@attr": { status: "1" },
    inner: {
    "@attr": { __type: "s32" },
    "@content": [1]
    }
    }
    }

    Parameters

    Returns Promise<void>

  • Send xml data using pug template system.

    Parameters

    • res: string

      pug string as the template

    • Optional data: any

      Render template with specified data, pass null or undefined to render static xml

    • Optional options: EamuseSendOption

      Response options. See: EamuseSendOption

    Returns Promise<void>

  • Render and send pug template from a file

    Parameters

    • file: string

      Filename of the template

    • Optional data: any

      Render template with specified data, pass null or undefined to render static xml

    • Optional options: EamuseSendOption

      Response options. See: EamuseSendOption

    Returns Promise<void>

  • Send xml data using ejs template system.

    Parameters

    • res: string

      xml string as the template

    • Optional data: any

      Render template with specified data, pass null or undefined to render static xml

    • Optional options: EamuseSendOption

      Response options. See: EamuseSendOption

    Returns Promise<void>

  • Render and send ejs template from a file

    Parameters

    • file: string

      Filename of the template

    • Optional data: any

      Render template with specified data, pass null or undefined to render static xml

    • Optional options: EamuseSendOption

      Response options. See: EamuseSendOption

    Returns Promise<void>

Generated using TypeDoc