Options
All
  • Public
  • Public/Protected
  • All
Menu

Module @ovotech/laminar-handlebars

Index

Type aliases

Cache: Map<string, { mtime: Date; template: TemplateDelegate }>
CacheType: "preload" | "expiry" | "none"

Cache types.

  • preload: load all the templates ones into memory
  • expiry: load partials when needed and keep them in cache, but check the file's mtime and reload template if changed
  • none: do not cache templates and load them on every request.
HandlebarsRender: (view: string, data?: Record<string, unknown>) => string

Type declaration

    • (view: string, data?: Record<string, unknown>): string
    • Parameters

      • view: string
      • Optional data: Record<string, unknown>

      Returns string

Functions

Generated using TypeDoc