Saltearse al contenido

RenderString

@aurorajs.dev/catalyst-cli


@aurorajs.dev/catalyst-cli / generator/engine/template-engine / renderString

renderString(template, data): string

Defined in: generator/engine/template-engine.ts:136

Render a raw template string (not a file) with the same helper namespaces as render.

Used for on-the-fly rendering of snippets stored outside the templates dir (e.g. a fragment taken from a YAML schema or assembled in memory).

string

TemplateData

string

If the template renders to a non-string value.