Skip to content

Instantly share code, notes, and snippets.

@yole
Created August 30, 2015 10:50
Show Gist options
  • Save yole/e773897d5bba1e787a11 to your computer and use it in GitHub Desktop.
Save yole/e773897d5bba1e787a11 to your computer and use it in GitHub Desktop.
fun renderPersonList(persons: Collection<Person>): String {
return createHTML().table {
for (person in persons) {
tr {
td { +person.firstName }
td { +person.lastName }
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment