{# ========================================================================== #}
{# :: Library brandplatform page #}
{# ========================================================================== #}
{#
	An extendable template page made for the library section of the
	brandplatform
#}

{# ========================================================================== #}
{# :: Settings & variables #}
{# ========================================================================== #}
{% set styleVendors = [] %}
{% set scriptVendors = [] %}
{% set data = ROUTEDATA or {} %}
{% set detail = data.DETAIL or {} %}
{% set componentVariations = detail.variations or {} %}

{% if componentVariations | length > 0 %}
	{% for key, value in componentVariations %}
		{% import value.source as v %}

		{% set scriptVendors = scriptVendors | mergeUniq(v.params.scriptVendors) %}
		{% set styleVendors = styleVendors | mergeUniq(v.params.styleVendors) %}
	{% endfor %}
{% endif %}

{# ========================================================================== #}
{# :: Template #}
{# ========================================================================== #}
<!DOCTYPE html>
<html lang="en">

	{% include "base/includes/head.njk" %}

	<body class="bp-l-root {{pageParams.bodyClass}}">

		{% block aside %}{% endblock %}

		<div class="bp-l-root__content">
			{% block header %}{% endblock %}

			<main class="bp-l-root__main">
				<div class="bp-l-container">
					{% block content %}{% endblock %}
				</div>
			</main>

			{% block footer %}{% endblock %}
		</div>

		{% include "base/includes/foot.njk" %}
	</body>

</html>
