Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FloofRenderer

A template rendering engine.

Hierarchy

  • FloofRenderer

Index

Methods

Methods

recompile

  • recompile(): void
  • Clears the template cache and recompiles template files. Templates are compiled and cached on startup.

    Returns void

render

  • Renders a template file to HTML with the given rendering context.

    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