jstachio

Java type safe statically compiled mustache

BSD-3-CLAUSE License

Stars
257

Bot releases are hidden (Show)

jstachio - v1.3.6 Latest Release

Published by agentgt 2 months ago

Bug Fix Release

Fix issue #397 of inherited fields missing by @agentgt in https://github.com/jstachio/jstachio/pull/398

Thank you @pabloperich for finding the bug.

What's Changed

Full Changelog: https://github.com/jstachio/jstachio/compare/v1.3.5...v1.3.6

jstachio - v1.3.5

Published by agentgt 8 months ago

Bug release fix for #322 which mostly impacts Spring but could impact other frameworks.

Some improvements were also done for escaping performance.

Thanks to @dsyer for finding #322

Full Changelog: https://github.com/jstachio/jstachio/compare/v1.3.4...v1.3.5

jstachio - v1.3.4

Published by agentgt 11 months ago

Bug fix release

Thanks to @frantello, @jskov and @bitfist

Bug fixes

#251 generated javadoc issues
#248 Spring model configurer had wrong signature for model maps

Enhancements

#266 a minor perf enhancement that does not change API.

Internal

Upgraded errorprone and checker and turned on even more static analysis.

Dependabot spam

Full Changelog: https://github.com/jstachio/jstachio/compare/v1.3.3...v1.3.4

jstachio - v1.3.3

Published by agentgt about 1 year ago

Bug fix release

Fix #244 so that Eclipse projects that are not using Maven or Gradle buildship will hopefully still work.

Thanks to @jskov !

What's Changed

Full Changelog: https://github.com/jstachio/jstachio/compare/v1.3.2...v1.3.3

jstachio - v1.3.2

Published by agentgt about 1 year ago

Bug fix release

Disable automatic gradle incremental support (aggregating): #223

If and when Gradle supports annotations on Modules we will turn back on aggregating.

If by small chance you were relying on "aggregating" incremental you may temporarily turn it on via

-Ajstache.gradle_incremental=aggregating

What's Changed

Full Changelog: https://github.com/jstachio/jstachio/compare/v1.3.1...v1.3.2

Thanks @hrstoyanov !

jstachio - v1.3.1

Published by agentgt about 1 year ago

Bug fix release

Fix #221 JStachio fallback mechanism was thinking intellij was gradle for JDK 17.

Thanks @taypo for the find!

Full Changelog: https://github.com/jstachio/jstachio/compare/v1.3.0...v1.3.1

jstachio - v1.3.0

Published by agentgt about 1 year ago

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");
}
{{@context.findLocale}}
{{country}} {{! call Locale.getCountry }}
{{/@context.findLocale}}

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

Full Changelog: https://github.com/jstachio/jstachio/compare/v1.2.1...v1.3.0

jstachio - v1.2.1

Published by agentgt about 1 year ago

Bug fix release

This release fixes some issues with supportsType as well as a Spring issue found by @dsyer .

The most notable change is to support inheritance of JStache annotations which is required for 1.3.0. We decided to support this feature in a patch release as it was unclear based on the documentation if a modelType requires an annotation or not and the current behavior was buggy.

  • #203
  • #204
  • #205

What's Changed

Full Changelog: https://github.com/jstachio/jstachio/compare/v1.2.0...v1.2.1

jstachio - v1.2.0

Published by agentgt over 1 year ago

Release 1.2.0 brings new features:

  • Spring Boot starter support
  • Dropwizard support
  • htmx fragments support
  • Tons of shared output strategies based on template benchmarking and continued framework integration

See the milestone for features added: https://github.com/jstachio/jstachio/milestone/5?closed=1

Thanks to @dsyer for more Spring guidance and @hrstoyanov for fragments idea.

What's Changed

Full Changelog: https://github.com/jstachio/jstachio/compare/v1.1.1...v1.2.0

jstachio - v1.1.1

Published by agentgt over 1 year ago

This bug release fixes some Spring integration issues with HTTP headers that were missing.

See #172 and #176

It is highly recommended you upgrade if you are using Spring.

What's Changed

Full Changelog: https://github.com/jstachio/jstachio/compare/v1.1.0...v1.1.1

jstachio - v1.1.0

Published by agentgt over 1 year ago

This release adds experimental nullable annotation support for generated code: #164

This will help those that are using complete null analysis tools like Checker and JSpecify (when it is ready)
that might be run on generated code.

While this is a minor release it should be completely safe to upgrade as we only add API changes to JStacheFlag (feature flags).

What's Changed

Full Changelog: https://github.com/jstachio/jstachio/compare/v1.0.1...v1.1.0

jstachio - v1.0.1

Published by agentgt over 1 year ago

This release added more aggressive escaping to the default Html escaper to stop newer HTML 5 exploits particularly attributes.
It is recommended you upgrade if your attribute content cannot be trusted!

Credit @casid (sorry I didn't see your reason earlier and guessed what it might be).

What's Changed

Full Changelog: https://github.com/jstachio/jstachio/compare/v1.0.0...v1.0.1

jstachio - v1.0.0

Published by agentgt over 1 year ago

Finally after almost a year JStachio has reached 1.0.0!

The API is finalized and the main branch can only take pull requests.

THANK YOU:

  • @sviperll for starting the initial project that JStachio is based on and with all your additional help!
  • @dsyer for the Spring integration work and usability testing!
  • @jgonggrijp for patiently helping me with the Mustache spec as well as your continued stewardship of future Mustache! (BTW mustache whitespace handling is one of my favorite features and I'm glad we got that in thanks to you!).
  • @jjlauer for Rocker's pre-encoding idea that JStachio uses as well!
  • @jskov for being a very early user and finding gradle issues!
  • @sullis for various build fixes!
  • @Allsimon for finding early issues!
  • @jknack accepting the jooby-jstachio module and for Jooby and Handlebars.java which was valuable for testing and inspiration.
  • @casid for updating the template-benchmark that I forked

Full Changelog: https://github.com/jstachio/jstachio/compare/v0.19.0...v1.0.0

jstachio - v0.19.0

Published by agentgt over 1 year ago

Reproducibility needed before 1.0.0 fixed.

What's Changed

Full Changelog: https://github.com/jstachio/jstachio/compare/v0.18.0...v0.19.0

jstachio - v0.18.0

Published by agentgt over 1 year ago

PRE_ENCODE is now the default and thus the flag has been removed and replaced with PRE_ENCODE_DISABLE.

The next release should be 1.0.0 as the API should be safe for performance improvements.

What's Changed

Full Changelog: https://github.com/jstachio/jstachio/compare/v0.17.0...v0.18.0

jstachio - v0.17.0

Published by agentgt over 1 year ago

Some API changes to support Jooby pre-encoding

What's Changed

Full Changelog: https://github.com/jstachio/jstachio/compare/v0.16.0...v0.17.0

jstachio - v0.16.0

Published by agentgt over 1 year ago

Performance enhancements and an API change. Hopefully the last API change before 1.0.0.

What's Changed

Full Changelog: https://github.com/jstachio/jstachio/compare/v0.15.0...v0.16.0

jstachio - v0.15.0

Published by agentgt over 1 year ago

The big change is adding lambda section partials which allows lambdas to wrap or repeat section bodies passed into the lambda.

What's Changed

Full Changelog: https://github.com/jstachio/jstachio/compare/v0.14.0...v0.15.0

jstachio - v0.14.0

Published by agentgt over 1 year ago

What's Changed

Full Changelog: https://github.com/jstachio/jstachio/compare/v0.13.0...v0.14.0

jstachio - v0.13.0

Published by agentgt over 1 year ago

Finally jstachio implements Mustache spec delimiter changing support!

What's Changed

Full Changelog: https://github.com/jstachio/jstachio/compare/v0.12.0...v0.13.0

Package Rankings
Top 6.73% on Proxy.golang.org
Badges
Extracted from project README
Maven Central Github
Related Projects