2022.1

Table Of Contents
at a time), they may be used to create a Table Of Contents (TOC), as explained in the topic:
"Creating a Table Of Contents" on page443.
See "Post Pagination Scripts" on page441.
Handlebars
Handlebars is the name of a JavaScript library that implements a templating language (see
https://handlebarsjs.com/). It uses a template and an input object to generate output.
The Handlebars library is integrated in OL Connect Designer. This means that you can use
Handlebars expressions in a special type of snippets:Handlebars templates.
See: "Handlebars in OL Connect" on page448.
Loading data
Before you can add variable data fields to a template in the Designer, you need to have a Data
Model and a sample of customer data. At the design stage the Designer doesn't need to have
access to all data; it just needs to know which data fields exist in your data and it needs some
data to be able to display a preview of the output.
To get access to a Data Model and data, you can open:
l A data file, see "Adding data from a data file" on the facing page.
l A database, see "Adding data from a database" on page340.
l JSONsample data, see "Adding JSON sample data" on page345.
When you open a data file or a database, the Data Model will be derived from it.
After opening a data file or database, the Data Model pane at the right hand bottom shows the
data fields that occur in the data.
The Value column displays data from the first record in the data file. Use the First, Previous,
Next and Last buttons to browse through the records, or use the Page Up, Page Down, Home
and End keys.
Note that all values are strings.
Page 337