Options
All
  • Public
  • Public/Protected
  • All
Menu

Class View

Hierarchy

  • View

Index

Constructors

constructor

  • new View(fileName: string, options?: any): View
  • 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

engine

engine: any

ext

ext: any

name

name: any

pathPromise

pathPromise: any

root

root: any

Methods

Private lookup

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

Private render

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

Private resolve

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

Generated using TypeDoc