Handlebars for Custom Layouts and Text Documents

TrueContext offers several options you can use to create custom output documents. One option is Handlebars templates. Use Handlebars to create custom layouts or custom document files, such as HTML/CSS, JSON, and CSV.

Our Handlebars implementation is a subset of the Handlebars framework. When you use the TrueContext version of the Handlebars templating engine, you build your template using JavaScript syntax.

A Handlebars template can get information from submitted records, such as:

  • The user who submitted the record
  • Answers to each question
  • The record identifier and other metadata

You can also use conditional statements in your template to control which answers are displayed and how they’re formatted.

The following topics provide working examples and the results you can expect.

Note:Test your templates thoroughly with actual data from submitted forms.