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
Source code: https://github.com/FrendsPlatform/Frends.JSON
Task Parameters
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}} ]
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
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?

