@foal/ejs

Last updated 9 days ago

Table of contents

  • index.ts

    • Functions

      • [renderToString][FunctionDeclaration-0]

index.ts

Functions

renderToString

Util function to render a template using EJS. It is used by the render function in @foal/core.

function renderToString(template: string, locals: object): string;

Parameters

Name

Type

Description

template

string

- The template.

locals

object

- The variables required by the template.

Return type

string

[FunctionDeclaration-0]: index.md#rendertostring