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
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.
|
| HandlebarPartials | HandlebarPartial[] |
– | [ strongName, <strong>{{name}}</strong> ] |
Partials for template. |