iflrandevu/application/views/partials/global_variables_script.php

11 lines
187 B
PHP
Raw Normal View History

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