blessing-skin-server/resources/views/shared/foot.twig
Zephyr Lykos af2c13a8b4
cleanup: wip part 3
twig + vite integration done
needs https://github.com/rcrowe/TwigBridge/pull/435
hmr: to be tested
2024-02-24 00:53:19 +08:00

12 lines
395 B
Twig

<script src="{{ i18n }}" crossorigin="anonymous"></script>
{{ vite('resources/index.tsx')|raw }}
{% for script in scripts %}
<script{% for attribute, value in script %} {{ attribute }}="{{ value }}"{% endfor %}></script>
{% endfor %}
{% if inline_js %}
<script>
{{ inline_js|striptags('<div><span><ul><li><p><a><img><i>')|raw }}
</script>
{% endif %}
{{ extra_foot|join('\n')|raw }}