Thymeleaf Detail View

Descripción

Create a Thymeleaf detail view for a given entity


File Template: ✅


Prefix

thyme:detail


Scopes

html


Snippet de código

<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
	<title>${1:MyEntity} Details</title>
</head>
<body>
	<h1>${1:MyEntity} Details</h1>
	<p>ID: <span th:text="${item.id}"></span></p>
	<p>Name: <span th:text="${item.name}"></span></p>
	<!-- Add other attributes here -->
	<a th:href="@{'/${2:entidades}'}">Back to List</a>
</body>
</html>