Zmienna przełęczy Thymeleaf do JavaScript

<script th:inline="javascript">
    var username = [[${session.user.name}]];
</script>
Wild Wren