Advertisement
andersonalmada

Untitled

Jul 1st, 2022
1,016
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <h1>Iteration Expression</h1>
  2. <table class="table">
  3.     <thead>
  4.         <tr>
  5.             <th scope="col">#</th>
  6.             <th scope="col">ID</th>
  7.             <th scope="col">Name</th>
  8.         </tr>
  9.     </thead>
  10.     <tbody>
  11.         <tr th:each="p : ${people}">
  12.             <th scope="row" th:text="${p.id}">1</th>
  13.             <td th:text="${p.id}">1</td>
  14.             <td th:text="${p.name}">Otto</td>
  15.         </tr>
  16.     </tbody>
  17. </table>
Advertisement
RAW Paste Data Copied
Advertisement