Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents a rendering context by wrapping a view object and maintaining a reference to the parent context.

Hierarchy

  • MustacheContext

Index

Constructors

Properties

Methods

Constructors

constructor

  • Initializes a new instance of the MustacheContenxt class.

    Parameters

    Returns MustacheContext

  • Initializes a new instance of the MustacheContenxt class.

    Parameters

    • view: any

    Returns MustacheContext

Properties

parentContext

parentContext: MustacheContext

view

view: any

Methods

lookup

  • lookup(name: string): any
  • Returns the value of the given name in this context, traversing up the context hierarchy if the value is absent in this context's view.

    Parameters

    • name: string

      The name to look up.

    Returns any

push

  • Creates a new context using the given view with this context as the parent.

    Parameters

    • view: any

      The view to create the new context with.

    Returns MustacheContext

Generated using TypeDoc