Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "templates"

Index

Interfaces

Functions

Functions

template

  • template(template: string, __namedParameters?: object): function
  • Create a template function. Syntax for template is {{property}} or {{ if (someCondition} { out.push(someProp) } }}

    Parameters

    • template: string

      Template string

    • Default value __namedParameters: object = {}
      • dataName: string
      • outName: string

    Returns function

    Template function

      • (data: any): string
      • Parameters

        • data: any

        Returns string

Generated using TypeDoc