Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • ViewLoader

Index

Methods

Methods

get

  • get(path: string): Function
  • Retrieves the template's function.

    Parameters

    • path: string

      The path to the template relative to basedir.

    Returns Function

    The termplate function.

render

  • render(path: string, locals?: object): string
  • Renders a view to HTML.

    Parameters

    • path: string

      The path to the template relative to basedir.

    • Optional locals: object

      The locals to use.

    Returns string

    The rendered HTML.

Legend

  • Property
  • Method

Generated using TypeDoc