{% import "macros.html" as macros %} {% extends "templates/base.html" %} {% block title %}Coral{% endblock %} {% block meta %} {# Insert the link preload tags here. #} {% if entrypoint.css %} {% for asset in entrypoint.css %} {{ macros.preload(asset.src, "style", prefix = staticURI) }} {% endfor %} {% endif %} {% if enableCustomCSS and tenant and tenant.customCSSURL %} {{ macros.preload(tenant.customCSSURL, "style") }} {% endif %} {% if customCSSURL %} {{ macros.preload(customCSSURL, "style") }} {% endif %} {% if analytics and analytics.key and analytics.url and analytics.sdk %} {# If analytics is enabled and available, configure the rudderstack analytics to load #} {% endif %} {% if entrypoint.js %} {% for asset in entrypoint.js %} {{ macros.preload(asset.src, "script", prefix = staticURI) }} {% endfor %} {% endif %} {# Insert the staticURI via the configuration object during insertion. #} {% endblock %} {# Include all the styles from the entrypoint #} {% if entrypoint.css or enableCustomCSS %} {% block css %} {% if entrypoint.css %} {% for asset in entrypoint.css %} {{ macros.css(asset.src, asset.integrity, staticURI) }} {% endfor %} {% endif %} {# Custom CSS is included after the CSS block so that its overrides will apply #} {% if enableCustomCSS %} {% if tenant and tenant.customCSSURL %} {{ macros.css(tenant.customCSSURL) }} {% endif %} {% endif %} {% if customCSSURL %} {{ macros.css(customCSSURL)}} {% endif %} {% endblock %} {% endif %} {% block html %}
{% endblock %} {# Include all the scripts from the entrypoint #} {% if entrypoint.js %} {% block js %} {% for asset in entrypoint.js %} {{ macros.js(asset.src, asset.integrity, staticURI) }} {% endfor %} {% endblock %} {% endif %}