variabel lulus thymeleaf ke javascript

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