Skip to content

Commit 6a88f39

Browse files
authored
Merge pull request #52 from billgonemad/readme-update
added install section to README.md
2 parents d93d489 + ee09b2d commit 6a88f39

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,24 @@ Rendering Grails Plugin
55

66
This plugin adds PDF, GIF, PNG and JPEG rendering facilities to Grails applications via the [XHTML Renderer](https://github.com/flyingsaucerproject/flyingsaucer) library.
77

8+
Install
9+
-------
10+
11+
To install just add to the dependency block in the `build.gradle`
12+
13+
For Grails 7.x
14+
```groovy
15+
implementation 'io.github.gpc:rendering:7.0.0-RC1'
16+
```
17+
18+
For Grails 3.x - 6.x
19+
```groovy
20+
implementation 'org.grails.plugins:rendering:2.0.3'
21+
```
22+
23+
Usage
24+
-----
25+
826
Rendering is either done directly via one of the `«format»RenderingService` services …
927

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

0 commit comments

Comments
 (0)