renderTemplate
functionfunction renderTemplate(
example: Example,
templatePath?: string
): Promise<string>;Render an example using the default or a custom template file.
PARAMETERS
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| example | Example | The example to render |
| templatePath? | string | Optional path to a custom .eta template file |
RETURNS
Promise<string>