Skip to content

Commit

Permalink
Add content to groovy-reports.md
Browse files Browse the repository at this point in the history
  • Loading branch information
per committed Aug 19, 2023
1 parent 7b8daa1 commit 4ce9b9a
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion docs/groovy-reports.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,16 @@ Groovy reports are just Groovy code that generates html.
You are completely free to generate that html any way you prefer.

A convenient way it to use the Html class of the gmd library which has some
nice ways of dealing with
nice ways of dealing with Matrix tables and charts.

If you want to add bootstrap and highlightjs to your html, you can use the
se.alipsa.groovy.gmd.HtmlDecorator.decorate() method to do that e.g:

```groovy
import se.alipsa.groovy.gmd.*
Html html = new Html()
html.add("<h1>Hello</h1>")
HtmlDecorator.decorate(html.toString())
```

0 comments on commit 4ce9b9a

Please sign in to comment.