Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Handlebars

Compile JToken to Handlebar template string.

Task version: 1.4.0

Required Frends version: 5.7+

Required .NET version: 8.0

Compatible Agents: Crossplatform

Task Parameters

Name
Description

Json : Object

JSON input needs to be of type string or JToken.

Default: - Example: { "title":"Mr.", "name":"Foo" }

HandlebarTemplate : String

Template for handlebars.

> indicates a partial.

This needs to be in expression mode.

Using {{ }} in other modes breaks the task.

Default: " {{title}} {{> strongName}} " Example: {{title}} {{> strongName}}

HandlebarPartials : HandlebarPartial[]

Partials for template.

Default: - Example: [ strongName, {{name}} ]

Name
Description

ThrowErrorOnFailure : Boolean

Whether to throw an exception on failure or return a Result with Success = false.

Default: True Example: true

ErrorMessageOnFailure : String

Custom error message used when an error occurs.

Default: - Example: -

Task Result

Name
Description

Success : Boolean

Operation complete without errors. Example: true

Data : String

Result data. Example:

Mr. Andersson

Error : Error

Error information when Success is false. Example: null

Error.Message : String

Human-readable error message. Example: Something went wrong.

Error.AdditionalInfo : Exception

The exception that caused the error, if available. Example: System.InvalidOperationException: Template compilation failed.

Task Changelog

Changelog is not available for this Task.

Last updated

Was this helpful?