When you create a campaign in PureClarity, you decide what content to show. This can be personalized recommendations, or other content you want to show to your users. All this content is defined using templates. PureClarity comes with a wide range of templates to help you get started and you can create new ones yourself.

Template Components

Templates are made up of 2 parts:

HTML Template

A template for the HTML that will be shown on your site. This uses a template language called Handlebars. When content is shown to a user, the template is rendered (converted) into HTML. CSS and JavaScript can also be part of this.

Schema

A schema which describes the properties of the template. This could be settings such as width, height, colour etc. When a campaign is created the schema defines what you can configure for the template. These properties are available for use in the HTML via Handlebars.
When a campaign is shown to the user, the template chosen for the campaign is rendered and HTML is produced that is shown to the user. This takes the settings set up in the campaign (defined by the schema) and the model for what is being rendered (such as the products to show in a recommender).

Template Editor Overview

The template editor lists all the custom templates you have set up in PureClarity. Click on a template and it will open in the editor.

Template Management Features

  • Usage Tracking: See how many campaigns are using each template
  • Quick Actions: Duplicate, rename and save templates easily
  • Delete Protection: You cannot delete a template if it is being used by a campaign
  • Template Creation: Add new templates by clicking “Add New Template”
When creating a new template, you can choose what template you want to base your template on. You can also choose an empty template if you want to start building from scratch.

Template Types

PureClarity templates can be used for different types of content:

Content Templates

Used for static or dynamic content that isn’t specifically product recommendations, such as:
  • Banners and promotional content
  • Custom messaging
  • Informational blocks

Recommendation Templates

Specifically designed for displaying product recommendations, including:
  • Product carousels
  • Product grids
  • Recently viewed items
  • Personalized product suggestions

Getting Started

For detailed information on creating your own templates, including working with Handlebars and schema configuration, see our Creating Templates Guide.
If you need help creating custom templates, our team is always available to assist. Contact us at support@pureclarity.com and we’ll help you create the perfect template for your needs.