Create a gist now

Instantly share code, notes, and snippets.

anonymous /excel_sample.xml
Created Apr 28, 2012

What would you like to do?
pages:excel example
<caption>Product list</caption>
<tbody th:remove="all-but-first">
<tr th:each="product : ${products}"
pages:excel="name,, stock, price">
<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