Options
All
  • Public
  • Public/Protected
  • All
Menu

Abstract base class for rendering views via different view engines.

Hierarchy

Index

Constructors

constructor

Properties

Protected Readonly config

config: Config

Protected Readonly debug

debug: boolean

Protected Readonly namespaces

namespaces: {} = {}

Type declaration

Protected Readonly routing

routing: Routing

Accessors

Private appClassApplication

path

Methods

Protected app

Protected container

getBoundMethod

  • getBoundMethod(methodName: string): (...args: any[]) => any
  • Get the method with the given name from this class, bound to this class.

    Parameters

    • methodName: string

    Returns (...args: any[]) => any

    function

      • (...args: any[]): any
      • Parameters

        • Rest ...args: any[]

        Returns any

Abstract getFileExtension

  • getFileExtension(): string

Protected getGlobals

  • getGlobals(): {}
  • Get the global variables that should be passed to every view rendered.

    Returns {}

    • [key: string]: any

Protected make

  • make<T>(target: any, ...parameters: any[]): T

registerNamespace

Abstract renderByName

  • renderByName(templateName: string, locals: {}): string | Promise<string>
  • Given the canonical name of a template file, render the file using the provided variables.

    Parameters

    • templateName: string
    • locals: {}
      • [key: string]: any

    Returns string | Promise<string>

Abstract renderString

  • renderString(templateString: string, locals: {}): string | Promise<string>
  • Given a template string and a set of variables for the view, render the string to HTML and return it.

    Parameters

    • templateString: string
    • locals: {}
      • [key: string]: any

    Returns string | Promise<string>

resolveBasePath

resolveName

Extollo Logo

extollo (v. latin) - to lift up, to elevate

Extollo is a free & libre application framework in TypeScript.