2022.1

Table Of Contents
Remote snippets
A remote snippet is either an HTML or JSON file that is not located within your template file but
is hosted on a Content Management System or other external location.
To add a remote snippet:
1. Right-click the Snippets folder on the Resources pane, and click New Snippet >
Remote HTML file or Remote JSON file.
2. Enter a name for the file as it appears in the Snippets folder. This name is shown in the
Snippets folder with the .rhtml file extension for HTML, or .rjson for a JSON file.
3. Enter the URL for the remote resource. This must be a full URL, including the http:// or
https:// prefix, domain name, path and file name.
Note
Remote snippets may contain other resources, such as images. There is one limitation
though: only absolute paths are supported inside remote snippets. Images and other
resources referred to with a relative path (for example: images/img.gif) or root-relative
path (any path starting with a slash, for example: /base/images/img.gif) won't be available
in the template.
Note
Remote snippets are expected to be UTF-8 encoded.
Creating a snippet
To start creating a snippet from scratch:
1. On the Resources pane, right-click the Snippets folder and select New.
2. Select the type of snippet that you want to create: HTML file, JSON file or Handlebars
template.
3. Give the snippet a name.
Page 777