HtmlDataConfig
Configures how raw entity inputs are reshaped into the viewModel — the data context the underlying Handlebars HTML template renders against.
The flow: caller supplies inputs → transform JSONata expression evaluates over them → result becomes the viewModel → Handlebars compiles the HTML asset with the viewModel as its data → rendered to PDF.
Use this to decouple the shape of your inputs from the shape your HTML template expects: callers send what's natural for them; the transform produces what's natural for the template.
- transformType: stringrequired
JSONata expression evaluated over the supplied inputs. The result becomes the viewModel — the object Handlebars references in the HTML via
{{...}}syntax (e.g.{{candidate.fullName}},{{#each items}}...{{/each}}). If the expression returns a non-object, it's wrapped as{ "data": <result> }automatically.
