Quantcast

Rendering plugin doco Errata

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Rendering plugin doco Errata

pmcneil
G'day Plugin Collective,

The Rendering plugin user guide doco has a mistake on the "3. Rendering
page". The example shows this:

// Render to a file
new  File("coupon.jpg").withOutputStream { outputStream ->
     jpegRenderingService.render(template: '/images/coupon', model: [serial: 12345])
}

it should be something like this:-

// Render to a file
new  File("coupon.jpg").withOutputStream { outputStream ->
     jpegRenderingService.render([template: '/images/coupon', model: [serial: 12345]], outputStream)
}


Cheers,
Peter.

--
web: http://nerderg.com
Twitter: http://twitter.com/pmcneil


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Rendering plugin doco Errata

ld@ldaley.com

On 21/06/2011, at 11:18 AM, Peter McNeil wrote:

> G'day Plugin Collective,
>
> The Rendering plugin user guide doco has a mistake on the "3. Rendering page". The example shows this:
>
> // Render to a file
> new  File("coupon.jpg").withOutputStream { outputStream ->
>    jpegRenderingService.render(template: '/images/coupon', model: [serial: 12345])
> }
>
> it should be something like this:-
>
> // Render to a file
> new  File("coupon.jpg").withOutputStream { outputStream ->
>    jpegRenderingService.render([template: '/images/coupon', model: [serial: 12345]], outputStream)
> }

Patched, thanks.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Loading...