Answers for "th:with in thymeleaf"

0

th:with in thymeleaf

<head th:with="component =${'/static/component'}, bizJs = ${'/static/js/biz'}">
    <span th:text="${component}"></span>
    <script th:src="@{(${component})}"></script>
    <script th:src="@{${bizJs} + '/static/js'}"></script>
</head>
Posted by: Guest on June-22-2021

Browse Popular Code Answers by Language