Skip to content

Commit

Permalink
Update DOCUMENTATION.md
Browse files Browse the repository at this point in the history
  • Loading branch information
casid authored Mar 6, 2021
1 parent a3369e1 commit 35000c4
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions DOCUMENTATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,23 @@ tasks.test {
}
```

In case you would like to build a self-contained JAR, you can add this to your build.gradle:

```groovy
from fileTree("jte-classes") {
include "**/*.class"
include "**/*.bin" // Only required if you use binary templates
}
```

And init the template engine like this for production builds:

```java
TemplateEngine templateEngine = TemplateEngine.createPrecompiled(ContentType.Html);
```

This way the templates are loaded from the application class loader.

</details>

### Using the application class loader (since 1.2.0)
Expand Down

0 comments on commit 35000c4

Please sign in to comment.