# Class RenderContext

RenderContext

context that store and control the rendering of index.htm from a template

- Defined in RenderContext.ts:17

#####
Index

### Constructors

constructor

### Properties

_handlersMap
_intercepted
_status
_stop
asyncTemplate
handleError
munchy
options
output
result
send
transform
user
voidResult
FULL_STOP
SOFT_STOP
VOID_STOP

### Accessors

isFullStop
isSoftStop
isVoidStop
status
stop

### Methods

fullStop
getTokenHandler
getTokens
handleTokenResult
intercept
setMunchyOutput
setOutputSend
setOutputTransform
softStop
voidStop

## Constructors

### constructor

- new RenderContext(options, asyncTemplate): RenderContext

- #### Parameters

  - options: any

    render context options

  - asyncTemplate: any

    async template

  #### Returns RenderContext

  - Defined in RenderContext.ts:47

## Properties

### _handlersMap

_handlersMap: any

- Defined in RenderContext.ts:27

### _intercepted

_intercepted: any

- Defined in RenderContext.ts:34

### _status

_status: any

- Defined in RenderContext.ts:33

### _stop

_stop: any

- Defined in RenderContext.ts:30

### asyncTemplate

asyncTemplate: any

- Defined in RenderContext.ts:26

### handleError

handleError: any

- Defined in RenderContext.ts:28

### munchy

munchy: any

- Defined in RenderContext.ts:32

### options

options: any

- Defined in RenderContext.ts:24

### output

output: any

- Defined in RenderContext.ts:25

### result

result: any

- Defined in RenderContext.ts:36

### send

send: any

- Defined in RenderContext.ts:31

### transform

transform: any

- Defined in RenderContext.ts:29

### user

user: any

store for user - you can use this to hold any data you need during the rendering process.

- Defined in RenderContext.ts:23

### voidResult

voidResult: any

- Defined in RenderContext.ts:35

### `Static` FULL_STOP

FULL_STOP: number = 2

- Defined in RenderContext.ts:39

### `Static` SOFT_STOP

SOFT_STOP: number = 1

- Defined in RenderContext.ts:40

### `Static` VOID_STOP

VOID_STOP: number = 3

- Defined in RenderContext.ts:38

## Accessors

### isFullStop

- get isFullStop(): boolean

- #### Returns boolean

  - Defined in RenderContext.ts:123

### isSoftStop

- get isSoftStop(): boolean

- #### Returns boolean

  - Defined in RenderContext.ts:140

### isVoidStop

- get isVoidStop(): boolean

- #### Returns boolean

  - Defined in RenderContext.ts:132

### status

- get status(): any

- #### Returns any

  - Defined in RenderContext.ts:101
- set status(s): void

- #### Parameters

  - s: any

  #### Returns void

  - Defined in RenderContext.ts:105

### stop

- get stop(): any

- #### Returns any

  - Defined in RenderContext.ts:84
- set stop(f): void

- #### Parameters

  - f: any

  #### Returns void

  - Defined in RenderContext.ts:97

## Methods

### fullStop

- fullStop(): void

- #### Returns void

  - Defined in RenderContext.ts:119

### getTokenHandler

- getTokenHandler(name): any

- #### Parameters

  - name: any

  #### Returns any

  - Defined in RenderContext.ts:59

### getTokens

- getTokens(name): any

- #### Parameters

  - name: any

  #### Returns any

  - Defined in RenderContext.ts:64

### handleTokenResult

- handleTokenResult(id, result, cb): any

- #### Parameters

  - id: any
  - result: any
  - cb: any

  #### Returns any

  - Defined in RenderContext.ts:150

### intercept

- intercept(__namedParameters): void

- #### Parameters

  - __namedParameters: {
    responseHandler: any;
    }

    - ##### responseHandler: any

  #### Returns void

  - Defined in RenderContext.ts:114

### setMunchyOutput

- setMunchyOutput(munchy?): void

- #### Parameters

  - munchy: any = null

  #### Returns void

  - Defined in RenderContext.ts:74

### setOutputSend

- setOutputSend(send): void

- #### Parameters

  - send: any

  #### Returns void

  - Defined in RenderContext.ts:70

### setOutputTransform

- setOutputTransform(transform): void

- #### Parameters

  - transform: any

  #### Returns void

  - Defined in RenderContext.ts:80

### softStop

- softStop(): void

- #### Returns void

  - Defined in RenderContext.ts:136

### voidStop

- voidStop(result?): void

- #### Parameters

  - result: any = null

  #### Returns void

  - Defined in RenderContext.ts:127