From def18f553c0a3f618d28ae3ea7351711faf5736a Mon Sep 17 00:00:00 2001 From: Joe Lauer Date: Wed, 6 Nov 2024 13:35:01 -0500 Subject: [PATCH] Update readme and docs --- CHANGELOG.md | 5 +++++ README.md | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 08815a1..e2a5da3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,11 @@ Rocker Templates by Fizzed ========================== +#### 2.0.1 - 2024-11-06 + + - New PlainTextStrategy of STATIC_BYTE_ARRAYS (helps with GraalVM compatability) (@ppedregal) + - Maven plugin supports setting "plainTextStrategy" as a new configuration option (@ppedregal) + #### 2.0.0 - 2024-11-06 - Java 7 support dropped. Java 8 is now minimum supported version (Java 21 will no longer compile < 8). diff --git a/README.md b/README.md index 6f5debb..941d319 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,7 @@ Includes the following features: * Templates retain enough information about the original template to throw exceptions at runtime (during render()) that let you track down the problematic line in the original template source file. +* GraalVM compatability if you leverage the new PlainText strategy of STATIC_BYTE_ARRAYS ## Sponsorship & Support @@ -448,7 +449,11 @@ to Rocker's default value. Useful for application-specific intermediate classes that you'd like all template models to extend. Defaults to Rocker's default. - + + * `plainTextStrategy` is the strategy used for embedding plain text as part + of templates. Default is STATIC_BYTE_ARRAYS_VIA_UNLOADED_CLASS but if you + need GraalVM compatability, you would try STATIC_BYTE_ARRAYS + * `discardLogicWhitespace` determines whether whitespace in templates that is determined to be only a part of logic/control blocks should be discarded. Helps make rendered content look more professional, while still keeping