Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ContextualizedRenderer

A template rendering engine contextualized to a specific floofball and request.

Hierarchy

  • ContextualizedRenderer

Index

Properties

Methods

Properties

floofball

floofball: FloofBall

The floofball this engine is bound to.

parent

The template renderer this renderer uses templates from.

req

The request this engine is bound to.

Methods

render

  • Renders a template file to HTML with the given rendering context. Also available in context are the associated floofball's default context and the associated request object.

    Parameters

    • file: string

      The template file to render. Should be located in /templates.

    • context: RenderContext

      The context to render the template file with.

    Returns Promise<string>

    A promise that resolves when the rendering is complete.

Generated using TypeDoc