Skip to main content


Caast Library allow a total control over what is printed on the client side. To create your own templates for your Caast Library Launcher, simply login into your dashboard and go to the app configuration in the template section.

Templates are dynamic and allow you to display conditional templates. We use blueimp/Javascript-Templates to easily create template, this library is very light and you can manipulate all the variables, implement conditions and iterations.

With custom templating, you can easily extend your in place design system and relying on your available css to customize the Caast Library to fit exactly on your website.

Template data

All the data available in the templating system is detailed in the data section.

Template required attributes

When you create a custom template you must add some id on particular elements. This is a required step in order to allow Caast widget listeners to perform all the required actions like subscribe, launch the live modal etc..

DATA-ATTR: data-caast-openMust be placed on the DOM element triggering the modal, must be a <button> or a <a> tag in order to respect a11y.

Omitting those attributes will lead to a non-working widget, do not hesitate to contact your support via your dashboard if you have any doubt.

Template example

The following example demonstrate how to rely on live states in order to display conditionnal UI elements.

<a class="custom-caast-launcher" data-caast-open="" rel="nofollow" target="_blank">
<div class="custom-caast-launcher__wrapper">
<div class="custom-caast-launcher__indicator">
{% if ( { %}
<div class="custom-caast-launcher__indicator-led"></div>
{% } else if ( { %}
<div class="custom-caast-launcher__indicator-led custom-caast-launcher__indicator-led--animated"></div>
{% } else { %}
<div class="custom-caast-launcher__indicator-led"></div>
{% } %}
<img class="custom-caast-launcher__img" src="{}" alt="{}" />
<div class="custom-caast-launcher__infos">
<strong class="custom-caast-launcher__title">{}<strong>
<small class="custom-caast-launcher__date">
var d=new Date(Date.parse(;
print(d.toLocaleDateString('fr-FR', { month: 'long', day: 'numeric', hour: 'numeric', minute: '2-digit' }));

Only the launcher is fully customizable via template injection. To alter the modal or landing styles, you can only rely on css definition override.