JSON

Frends.JSON.Handlebars / 1.3.0

Summary

Renders JSON through a Handlebars template, with partials for shared fragments, producing free-form text rather than another JSON document.

Typical use — generating HTML mail bodies, plain-text messages and other human-readable output from structured data

Details

Frends version
5.7 and newer
Agent
Crossplatform
Target framework
net8.0

Input parameters.

Name Type Default Example Description
Json Object { \"title\":\"Mr.\", \"name\":\"Foo\" }

JSON input needs to be of type string or JToken.

HandlebarTemplate String "<xml> {{title}} {{> strongName}} </xml>" <xml> {{title}} {{> strongName}} </xml>

Template for handlebars.

indicates a partial. This needs to be in expression mode. Using {{ }} in other modes breaks the task.

HandlebarPartials HandlebarPartial[] [ strongName, <strong>{{name}}</strong> ]

Partials for template.

An unhandled error has occurred. Reload 🗙