Passing logged-in user credentials from twig to vue.

This commit is contained in:
krzysiej
2022-06-21 12:39:22 +02:00
parent 00bb86f798
commit c054f791b1
6 changed files with 38 additions and 11 deletions

View File

@@ -5,7 +5,9 @@
<title>{% block title %}Welcome!{% endblock %}</title>
<link rel="icon"
href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>📔</text></svg>">
<script>
window.user = {{ get_user() | raw }};
</script>
{% block stylesheets %}
{{ encore_entry_link_tags('app') }}
{% endblock %}