v1.3.0
1.3.0 Feature Release
See all the 1.3.0 issues
The most important feature added is #168 Context Aware Templates.
This feature took extensive work and Spring MVC supports it OOB. In Spring this will allow you to access
model attributes like.
{{@context.someModelAttribute}}
@context
is like a Map
so you do loose some type safety when using it but this will allow models to stay immutable. You can use lambdas to pull contents out of a context and cast it.
@JStacheLambda
public Locale findLocale(ContextNode node) {
return (Locale) node.get("locale");
}
Potential breaking changes
There is a very very minor chance this release will break if you extended:
JStachioFilter
ContextNode
It was decided not to make a major version since it was documented that those interfaces are rather internal.
Regardless it is best to rerun the annotation processor on all models before upgrading the runtime.
Deprecation
The JMustache extension has been sadly deprecated. While it did work for simple stuff it was too misleading to be trusted.
We are actively looking for newer/better hot reload #187 . Stay tuned and thumb-up if hot reload is a pain point.
What's Changed
- Bump org.codehaus.plexus:plexus-archiver from 4.7.1 to 4.8.0 by @dependabot in #206
- More defensive coding in interceptor by @dsyer in #208
- Add native image testing by @agentgt in #212
- Add autoconfiguration for @WebMvcTest by @dsyer in #211
- Allow multiple resourcePaths compiler option #198 by @agentgt in #199
- Add context aware support #168 by @agentgt in #207
- Add Maven build cache extension by @dsyer in #215
- Bump org.apache.maven:maven-core from 3.9.3 to 3.9.4 by @dependabot in #213
- Bump org.graalvm.buildtools:native-maven-plugin from 0.9.23 to 0.9.24 by @dependabot in #218
- Default jstache suffix when no path #196 by @agentgt in #219
Full Changelog: v1.2.1...v1.3.0