iflrandevu/application/views/partials/global_variables_script.php

10 lines
187 B
PHP

<?php
/**
* @var string $attributes
* @var array $global_variables
*/
?>
<script <?= $attributes ?>>
const GlobalVariables = <?= json_encode($global_variables ?? []) ?>
</script>