# Class RenderProcessor

- Defined in render-processor.ts:18

#####
Index

### Constructors

constructor

### Properties

_insertTokenIds
_options
_renderer

### Methods

applyTokenModuleLoad
makeHandlerStep
makeNullRemovedStep
makeStep
render

## Constructors

### constructor

- new RenderProcessor(options): RenderProcessor

- #### Parameters

  - options: {
    asyncTemplate?: any;
    insertTokenIds?: boolean;
    }

    - ##### `Optional` asyncTemplate?: any

      The renderer instance

    - ##### `Optional` insertTokenIds?: boolean

      Add debugging comment to rendered output with token IDs

  #### Returns RenderProcessor

  - Defined in render-processor.ts:23

## Properties

### _insertTokenIds

_insertTokenIds: boolean

- Defined in render-processor.ts:20

### _options

_options: any

- Defined in render-processor.ts:19

### _renderer

_renderer: TagRenderer

- Defined in render-processor.ts:21

## Methods

### applyTokenModuleLoad

- applyTokenModuleLoad(options, template): void

- #### Parameters

  - options: any
  - template: TagTemplate

  #### Returns void

  - Defined in render-processor.ts:34

### makeHandlerStep

- makeHandlerStep(tk): {
  code: number;
  data?: undefined;
  insertTokenId?: undefined;
  msg: string;
  tk: any;
  } | {
  code: number;
  data: any;
  insertTokenId: boolean;
  msg: undefined;
  tk: any;
  } | {
  code: number;
  data?: undefined;
  insertTokenId: boolean;
  msg: undefined;
  tk: any;
  }

- Make a execution step for a token with a handler

  #### Parameters

  - tk: any

  #### Returns {
  code: number;
  data?: undefined;
  insertTokenId?: undefined;
  msg: string;
  tk: any;
  } | {
  code: number;
  data: any;
  insertTokenId: boolean;
  msg: undefined;
  tk: any;
  } | {
  code: number;
  data?: undefined;
  insertTokenId: boolean;
  msg: undefined;
  tk: any;
  }

  - Defined in render-processor.ts:62

### makeNullRemovedStep

- makeNullRemovedStep(tk, cause): {
  code: number;
  data: string;
  insertTokenId: boolean;
  tk: any;
  }

- Generate an exec step for a tag that has a null handler

  #### Parameters

  - tk: any

    tag

  - cause: string

    reason a null handler is needed

  #### Returns {
  code: number;
  data: string;
  insertTokenId: boolean;
  tk: any;
  }

  - ##### code: number

  - ##### data: string

  - ##### insertTokenId: boolean

  - ##### tk: any

  - Defined in render-processor.ts:48

### makeStep

- makeStep(tk): any

- Make a execution step for a token tag

  #### Parameters

  - tk: any

    token tag

  #### Returns any

  execution step

  - Defined in render-processor.ts:100

### render

- render(template, context, tagTokens): any

- Run rendering for a template

  #### Parameters

  - template: TagTemplate

    the template

  - context: RenderContext

    RenderContext

  - tagTokens: any[]

    template tag tokens

  #### Returns any

  Promise that resolves after rendering completed

  - Defined in render-processor.ts:158