Apache Roller 4.0 supports Groovy
The new version 4.0 of the Apache Roller blog management system supports experimental integration of the Groovy language for three different purposes:
Groovy as a client language for the Roller API
The Roller blog software may be controlled via remote procedure calls against the Roller API from external clients. Although you were able to do this before in Java, in the current development branch there are examples written in Groovy. These examples demonstrate how to list roller users and roles, create new users and create new blogs. You may find them in the sandbox of the Subversion repository.
Groovy as a template renderer using the MarkupBuilder for HTML
One of Groovys main strengths is its ability to define Domain Specific Languages (DSL). The DSL for generating HTML is already included in Groovy: it's called MarkupBuilder. It can be used as a language to write templates for the roller themes. Here's a simple example:
html.html { // html is implicitly bound to new MarkupBuilder(out)
head {
title(model.weblog.name)
}
body {
h1(model.weblog.name)
i(model.weblog.description)
map = model.getWeblogEntriesPager().getEntries();
map.keySet().each() {
map.get(it).each() {
h2(it.title)
p(it.text)
br()
}
}
}
}
The example can be found in this README.txt .
Groovy Server Pages as a Roller template renderer engine
Groovy Server Pages (GSP) are like a JSP++ dialect for HTML pages. They are used for example in the Grails web framework. Now they can be used as an experimental template renderer engine as an alternative to the currently used velocity engine.
The same example as before in GSP syntax looks like this:
<html>
<head>
<title>${model.weblog.name}</title>
</head>
<body>
<h1>${model.weblog.name}</h1>
<i>${model.weblog.description}</i>
<% map = model.getWeblogEntriesPager().getEntries();
map.keySet().each() { %>
<% map.get(it).each() { %>
<h2>${it.title}</h2>
<p>${it.text}</p><br />
<% }
}%>
</body>
</html>
This example is included in the same README.txt .
Other blog software which uses Groovy
If you want a blog software which is 100% Groovy I know of two alternatives to Apache Roller:
- Gravl from Glen Smith, here is the code browser
- Tutorial "Build Your First Grails Project: A Grails-Powered Blog" on devx.net with Source Code
So the Groovy world already offers three different blog management systems where you may use your favorite language!

This blog Is very informative , I am really pleased to post my comment on this blog . It helped me with ocean of knowledge so I really belive you will do much better in the future . Good job web master .
Gesendet von John Beck Real Estate am October 08, 2008 at 09:53 AM CEST #