Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 954 Bytes

File metadata and controls

28 lines (19 loc) · 954 Bytes

Introduction

This plugin adds additional rendering capabilities to Grails applications via the XHTML Renderer library.

Rendering is either done directly via «format»RenderingService services …​

ByteArrayOutputStream bytes = pdfRenderingService.render(template: "/pdfs/report", model: [data: data])

Or via the render«format»() methods in RenderingTrait that is added to controllers …​

renderPdf(template: "/pdfs/report", model: [report: reportObject], filename: reportObject.name)

The plugin is released under the Apache License 2.0 license and is produced under the Grails Plugin Collective.

Your plugin dependency

Add the following to your dependencies:

implementation 'io.github.gpc:rendering:{revnumber}'