Create a gist now

Instantly share code, notes, and snippets.

anonymous /sort_example.xml
Created Apr 28, 2012

What would you like to do?
pages:sort example
<caption>Product list</caption>
<th pages:sort="name">Product</th>
<th pages:sort="">Category</th>
<th pages:sort="stock">Stock</th>
<th pages:sort="price">Price</th>
<tbody th:remove="all-but-first">
<tr th:each="product : ${products}">
<td th:text="${}">Chair</td>
<td th:text="${}">Apparels</td>
<td th:text="${product.stock}">12</td>
<td th:text="${product.formattedPrice}">150 €</td>
<td>500 €</td>
<td>650 €</td>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment