better mesages

This commit is contained in:
djmil 2023-07-28 11:47:38 +02:00
parent 6740cb9faf
commit 4b8e9ed65a
2 changed files with 5 additions and 4 deletions

View File

@ -113,8 +113,9 @@ Let's add minimal interactivity to the page by introducing an input field and a
... ...
<body> <body>
<p th:text="'Hello, ' + ${name} + '!'" /> <p th:text="'Hello, ' + ${name} + '!'" />
<p th:text="'Length of your name is ' + ${nameLength} + ' characters.'" />
<input placeholder="Enter username.."/> <input placeholder="Enter username.."/>
<button>Go!</button> <button>Again!</button>
</body> </body>
</html> </html>

View File

@ -6,9 +6,9 @@
</head> </head>
<body> <body>
<p th:text="'Hello, ' + ${name} + '!'" /> <p th:text="'Hello, ' + ${name} + '!'" />
<p th:text="'Length of a given name is ' + ${nameLength} + ' characters.'" /> <p th:text="'Length of your name is ' + ${nameLength} + ' characters.'" />
<input placeholder="Enter username.."/> <input placeholder="Enter username.."/>
<button>Go!</button> <button>Again!</button>
</body> </body>
</html> </html>