We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2960324 commit 18dc25eCopy full SHA for 18dc25e
grails-doc/src/en/ref/Controllers/render.adoc
@@ -63,9 +63,13 @@ render {
63
}
64
65
// render some XML markup to the response
66
+def bookList = [
67
+ new Book(title: 'The Shining', author: 'Stephen King'),
68
+ new Book(title: 'The Great Gatsby', author: 'F. Scott Fitzgerald')
69
+]
70
render(contentType: "text/xml") {
71
books {
- for (b in books) {
72
+ for (b in bookList) {
73
book(title: b.title, author: b.author)
74
75
0 commit comments