<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
  layout:decorate="~{layouts/default}">
<head>
  <title>All</title>
</head>
<body>
  <div layout:fragment="content">
    <h1>All greetings</h1>

    <table class="table table-striped table-hover">
      <thead>
        <tr>
          <th>Id</th>
          <th>Template</th>
          <th>Examples</th>
        </tr>
      </thead>
      <tbody>
        <tr th:each="g : ${greetings}">
          <td th:text="${g.id}">1</td>
          <td th:text="${g.template}">Hello, %s!</td>
          <td>
            <a th:each="n : ${names}" th:href="${(#mvc.url('GC#greeting').arg(0, g.id).arg(1, n)).build()}" th:text="${n}">Rob</a>
          </td>
        </tr>
      </tbody>
    </table>

    <p>
      <a class="btn btn-primary" role="button" href="/greeting/new"><i class="fa fa-plus" aria-hidden="true"></i> Add a new greeting</a>
    </p>
  </div>
</body>
</html>

<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
  layout:decorate="~{layouts/default}">
<head>
  <title>All</title>
</head>
<body>
  <div layout:fragment="content">
    <h1>All greetings</h1>

    <table class="table table-striped table-hover">
      <thead>
        <tr>
          <th>Id</th>
          <th>Template</th>
          <th>Examples</th>
        </tr>
      </thead>
      <tbody>
        <tr th:each="g : ${greetings}">
          <td th:text="${g.id}">1</td>
          <td th:text="${g.template}">Hello, %s!</td>
          <td>
            <th:block th:each="n, state : ${names}">
              <a th:href="${(#mvc.url('GC#greeting').arg(0, g.id).arg(1, n)).build()}" th:text="${n}">Rob</a><th:block th:if="!${state.last}">, </th:block>
            </th:block>
          </td>
        </tr>
      </tbody>
    </table>

    <p>
      <a class="btn btn-primary" role="button" href="/greeting/new"><i class="fa fa-plus" aria-hidden="true"></i> Add a new greeting</a>
    </p>
  </div>
</body>
</html>

Make a comma separated list for the example names.
Make a comma separated list for the example names.
