Passing logged-in user credentials from twig to vue.
This commit is contained in:
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user