RenderString
@aurorajs.dev/catalyst-cli / generator/engine/template-engine / renderString
Function: renderString()
Sección titulada «Function: 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).
Parameters
Sección titulada «Parameters»template
Sección titulada «template»string
Returns
Sección titulada «Returns»string
If the template renders to a non-string value.