Please help in using Thymeleaf. The application generates html pages using html-template. On each generated page, I display a description of a specific product. For each product there is a list of characteristics. For example, how sizes are displayed:
<p>Dimensions: <span th:text="${dimension}">Dimension</span></p> In the span container, I get a dimension value that corresponds to this product. Question:
How should the p tag be set in case the dimension == null variable, so that Thymeleaf does not generate this tag at all (like its contents), or leave it empty?
Huge please do not post links to the documentation. Much of it was already unsuccessfully tried.
(${dimension} ? '<p>Dimensions: <span th:text="${dimension}">Dimension</span></p>' : '')? - br3t