2022.1

Table Of Contents
Translating text
OL Connect templates can be multilingual. For information about multilingual templates and
how to create them, see "Translating templates" on page463.
Snippets
A snippet is a small, ready-to-use piece of content in a file. Snippets can be re-used within the
same template, in all contexts, sections and scripts.
There are three types of snippets:
l HTML snippets can contain any contents that a section can have, such as text, images,
variable data, dynamic tables, etc., see "HTML snippets" on page284.
l JSON files contain data; see "JSON snippets" on page286
l Handlebars templates can contain HTML and Handlebars expressions; see "Handlebars
templates" on page287.
The information in this topic applies to all or at least two types of snippets.
Note
Regarding styling: when a snippet is added to different sections or contexts, it is
displayed according to the section's or context's style sheet. This means that the same
content can look different depending on the styles applied to the section or context,
without changing the content.
Tip
It is possible to open and edit any external HTML or JSON file in the Designer: select File
> Open, select All files (*.*) as the file type and then select an HTML or JSON file.
Adding a snippet to the Resources
Here's how to add a snippet to the Resources of a template.
Page 281