This documentation is currently under development. Certain sections are not yet complete and will be added shortly.
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Templates

Render one or more Liquid templates with the provided context.

post
/api/{tenantId}/templates/render

Applies the tenant-configured template engine to each submitted template using the shared context payload. All templates are rendered with a single engine instantiation.

The response is an array aligned with the request Templates array: Results[i] is the rendered output of Templates[i].

Authorization

Requires Core.Read scope.

Required scopes
This endpoint requires the following scopes:
Authorizations
OAuth2implicitRequired
Authorization URL:
Path parameters
tenantIdstringRequired
Body

Request body for rendering Liquid templates.

culturestring · nullableOptional

Optional BCP 47 culture tag (e.g. "en", "fr-FR"). Defaults to the server's current culture when omitted.

templatesstring[]Required

One or more Liquid template strings to render.

contextobject · nullableOptional

Key/value pairs made available to every template during rendering.

Responses
200

Templates rendered; check errors for per-template Liquid failures.

Response body returned by M:Neo.Web.Api.Template.Controllers.TemplatesController.Render(Neo.Web.Api.Template.Controllers.TemplatesController.RenderTemplateRequest,System.Threading.CancellationToken).

resultsstring[]Required

Index-aligned rendered outputs. Results[i] corresponds to Templates[i]. The value is null when the template at that index failed to render (see Neo.Web.Api.Template.Controllers.TemplatesController.RenderTemplateResponse.Errors).

errorsstring[] · nullableOptional

Index-aligned Liquid error messages. Only present when at least one template failed. Errors[i] is null when Results[i] rendered successfully.

post/api/{tenantId}/templates/render

Last updated