<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Disqus - Latest Comments for akochnev</title><link>http://disqus.com/by/akochnev/</link><description></description><atom:link href="http://disqus.com/akochnev/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Tue, 30 Sep 2008 06:33:47 -0000</lastBuildDate><item><title>Re: Peel me a Grape :: We make things work</title><link>http://blog.peelmeagrape.net/2007/10/9/dynamic-javascript-plugin-for-grails#comment-2748698</link><description>&lt;p&gt;I've been using your plugin in an app that I'm working on. While the demo app does work w/ the 0.2 version of the plugin that you released, in my app the plugin would still not render a template propery inside of a renderJavascript {} . Here's what I've done to make it work for me :&lt;/p&gt;&lt;p&gt;The original impl of the JavascriptBuilder.renderTemplate method: &lt;br&gt;    private String renderTemplate(Map options)&lt;br&gt;    {&lt;br&gt;        StringWriter s = new StringWriter()&lt;br&gt;        GrailsWebRequest webRequest = (GrailsWebRequest)RequestContextHolder.currentRequestAttributes();&lt;br&gt;        HttpServletResponse response = webRequest.getCurrentResponse();&lt;br&gt;        def writer = (RoutablePrintWriter)webRequest.getOut()&lt;br&gt;        controller.render(options);&lt;br&gt;        writer.destination.out.toString();&lt;br&gt;}&lt;/p&gt;&lt;p&gt;my implementation (using the render tag)&lt;/p&gt;&lt;p&gt;  private String renderTemplate(Map options) {&lt;br&gt;     return controller.g.render(options)&lt;br&gt;  }&lt;/p&gt;&lt;p&gt;With this implementation, my app works, and the demo app works as well. Would you consider updating the plugin and publishing a new version if you find this improvement worthwhile ? &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">akochnev</dc:creator><pubDate>Tue, 30 Sep 2008 06:33:47 -0000</pubDate></item></channel></rss>