Skip to content

Instantly share code, notes, and snippets.

@filiperdt
Created April 29, 2021 22:56
Show Gist options
  • Save filiperdt/5e209ef81c21f24bd36907b4eaaea455 to your computer and use it in GitHub Desktop.
Save filiperdt/5e209ef81c21f24bd36907b4eaaea455 to your computer and use it in GitHub Desktop.
Print Thymeleaf variable in console.log
<script th:inline="javascript">
/*<![CDATA[*/
console.log(/*[[${myVariable.id}]]*/ 'default');
/*]]>*/
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment