13.3 RSS and Atom - Reference Documentation
Authors: Graeme Rocher, Peter Ledbrook, Marc Palmer, Jeff Brown, Luke Daley, Burt Beckwith
Version: null
13.3 RSS and Atom
No direct support is provided for RSS or Atom within Grails. You could construct RSS or ATOM feeds with the render method's XML capability. There is however a Feeds plugin available for Grails that provides a RSS and Atom builder using the popular ROME library. An example of its usage can be seen below:
No hay soporte directo proveido dentro de Grails para RSS y Atom. Usted podria construir RSS o ATOM feeds con los metodos de render con la capacidad de XML. Hay sin embargo un plugin de Feeds disponible para Grails que provee un constructor de RSS y ATOM usando la libreria popular ROME Un ejemplo de su uso pude verse a continuacion:def feed() {
render(feedType: "rss", feedVersion: "2.0") {
title = "My test feed"
link = "http://your.test.server/yourController/feed" for (article in Article.list()) {
entry(article.title) {
link = "http://your.test.server/article/${article.id}"
article.content // return the content
}
}
}
}
