JRuby on Roller
This is just a quick follow-up to my previous post on Pluggable renderers and scripting languages in Roller. It took me a while, but I finally made JRuby code work inside a Roller page template. Here's an example JRuby page template that displays most recent blog titles and text in HTML format.
Not the most beautiful thing in the world, I must admit. Any JRuby experts reading along? Is there a simple templating solution that will work in JRuby... something like Groovy Templates? And is there a way to map puts output to a java.io.Writer that will work via BSF?$out.println "<html><head>"
$out.println "<title>#{$model.weblog.name}</title>"
$out.println "</head><body>"
$out.println "<h1>#{$model.weblog.name}</h1>"
$model.weblogEntriesPager.entries.keySet().each {|day|
$model.weblogEntriesPager.entries.get(day).each {|entry|
$out.println "<h3>#{entry.title}</h3>"
$out.println "<p>#{entry.text}</p>"
}
}
$out.println "</body></html>"
Congrats
Congrats to Mark Pilgrim on his new job at Google, where he'll be working on the "right" vision for the future of the web. I assume the "wrong" vision, in Mark's mind, comes from the W3C and specifically the W3C's semantic web activities. Mark's comment pointing to his earlier The Overton Window post seems to back that up. I think it's interesting that Mark will be working remotely; that's a rare thing at Google.
And congrats to Debian Linux co-founder Ian Murdock on his new job at Sun, where he'll be working on all things OpenSolaris and, I hope, helping to make it as easy and fun to use as Debian or even Ubuntu.
Roller on SJS Web Server 7.0
Complete instructions for Running Roller Weblogger on Sun Java System Web Server 7.0 by Seema Alevoor and Marina Sum. Via The Aquarium.