Table of Contents

Method Render

Namespace
LMKit.Agents.Workflows
Assembly
LM-Kit.NET.dll

Render(string, IWorkflowScope)

Renders a template: every {{ expression }} is replaced by its value as text; the rest is kept as written.

public static string Render(string template, IWorkflowScope scope)

Parameters

template string

The template.

scope IWorkflowScope

The values its placeholders read.

Returns

string

The rendered text.

Exceptions

FormatException

Thrown when a placeholder cannot be read.

Share