Introduction
On this pageShowHide

Introduction

Welcome to Trustisto Templates API documentation. You can use our Template API to create new templates for your Trust Overlays, Trust Bars, Trust Mails.

If you have any problem with our API, our developers are happy to help. You can drop us an e-mail at it@trustisto.com. We are happy to help you.

Templates are HTML/CSS/JS components that can be used as Trustisto Overlays, Bars or even Mails.

As a developer, you are creating template with set of parameters which user can use to personalize that template for his need. For example user can change:

  • text,
  • font size and colors,
  • images,
  • background,
  • etc.

You decide what can be changed by embedding parameters into HTML and embedded CSS code using handlebars {{...}}) notation and describe all parameters in manifest.json file.

Quick start with the CLI

The easiest way to build a template is the Trustisto CLI. It creates the files from a base package, serves them for preview, checks them the way the panel does and uploads them, so you do not pack zip files by hand:

Shell
npm install -g @trustisto/cli
trustisto login
trustisto template new ./my-popup --type popup
trustisto template start ./my-popup
trustisto template deploy ./my-popup

Each step is described in Build with the CLI. The rest of this section explains how a template works: its structure, manifest.json, index.html and how it is rendered.