RenderString
@aurorajs.dev/catalyst-cli / generator/engine/template-engine / renderString
Function: renderString()
Section titled “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
Section titled “Parameters”template
Section titled “template”string
Returns
Section titled “Returns”string
Throws
Section titled “Throws”If the template renders to a non-string value.