### Hierarchy

- View

## Index

### Constructors

- constructor

### Properties

- defaultEngine
- engine
- ext
- name
- pathPromise
- root

### Methods

- lookup
- render
- resolve

## Constructors

### constructor

- new View(fileName: string, options?: any): View

- - Defined in home/runner/work/opine/opine/src/view.ts:35

  Initialize a new `View` with the given `name`.

  Options:

  - `defaultEngine` the default template engine name
  - `engines` template engine require() cache
  - `root` root path for view lookup

  #### Parameters

  - ##### fileName: string

  - ##### Default value options: any = {}

  #### Returns View

## Properties

### defaultEngine

defaultEngine: any

- Defined in home/runner/work/opine/opine/src/view.ts:30

### engine

engine: any

- Defined in home/runner/work/opine/opine/src/view.ts:34

### ext

ext: any

- Defined in home/runner/work/opine/opine/src/view.ts:31

### name

name: any

- Defined in home/runner/work/opine/opine/src/view.ts:32

### pathPromise

pathPromise: any

- Defined in home/runner/work/opine/opine/src/view.ts:35

### root

root: any

- Defined in home/runner/work/opine/opine/src/view.ts:33

## Methods

### Private lookup

- lookup(name: string): Promise<any>

- - Defined in home/runner/work/opine/opine/src/view.ts:119

  Lookup view by the given `name`

  #### Parameters

  - ##### name: string

  #### Returns Promise<any>

### Private render

- render(options: object, callback: Function): Promise<void>

- - Defined in home/runner/work/opine/opine/src/view.ts:141

  Render with the given options.

  #### Parameters

  - ##### options: object

  - ##### callback: Function

  #### Returns Promise<void>

### Private resolve

- resolve(dir: string, file: string): Promise<any>

- - Defined in home/runner/work/opine/opine/src/view.ts:95

  Resolve the file within the given directory.

  #### Parameters

  - ##### dir: string

  - ##### file: string

  #### Returns Promise<any>

Generated using TypeDoc