Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ExpandOptions

Options to control template expansion.

Hierarchy

  • ExpandOptions

Index

Constructors

constructor

  • Returns ExpandOptions

  • Parameters

    Returns ExpandOptions

Methods

getAllowVariableMiss

  • getAllowVariableMiss(): boolean
  • Configures whether a template missing variable is replaced by the empty string or triggers a NoSuchElementException to be thrown.

    The default is true as specified by the RFC, setting false is a custom setting not compliant with the spec.

    Returns boolean

setAllowVariableMiss

  • setAllowVariableMiss(allowVariableMiss: boolean): ExpandOptions
  • Configures whether a template missing variable is replaced by the empty string or triggers a NoSuchElementException to be thrown.

    The default is true as specified by the RFC, setting false is a custom setting not compliant with the spec.

    Parameters

    • allowVariableMiss: boolean

    Returns ExpandOptions

toJson

  • toJson(): {}
  • Returns {}

    • [key: string]: any

Generated using TypeDoc