{# ========================================================================== #}
{# Page foot (insert before closing body) #}
{# ========================================================================== #}

{# Vendors #}
{% for vendor in scriptVendors %}
	<script src="{{vendor}}"></script>
{% endfor %}

{# Core js #}
{% if pageParams.loadCoreJS %}
	<script src="/js/core.min.js"></script>
{% endif %}

{# Project js #}
{% if pageParams.loadProjectJS %}
	{% set files = CONFIG.scripts.files or [] %}

	{% if files %}
		{% for file in files %}
			<script src="{{file}}"></script>
		{% endfor %}
	{% endif %}
{% endif %}
