Commit Graph

347 Commits

Author SHA1 Message Date
Michael Bayne 940af397c4 Merge pull request #140 from ralfs-gutmanis/master
Add ability to pass CharSequence instead of forcing String for contex…
2023-11-15 09:52:14 -08:00
Michael Bayne c8915ffc3c Upgrade snakeYAML dependency.
Dependabot is very nervous about < 2.0 versions. Fortunately we seem to be able
to use 2.0 with no code changes.
2023-11-15 09:29:57 -08:00
Michael Bayne 1ff4a2acf3 Remove GWT support.
Also target source 1.9 as we no longer need 1.8 for GWT and hopefully the rest
of the world has moved on from Java 1.8 in the last twenty years.
2023-11-15 09:26:03 -08:00
Michael Bayne 10df38d9a3 Couple of whitespace tweaks. 2023-11-15 09:13:10 -08:00
Michael Bayne cb76383aaf Merge pull request #142 from gonozalviii/master
Add indentation to partials
2023-11-15 09:07:11 -08:00
Peer Schönhusen 979b3b887c Add indentation to partials 2023-11-15 11:24:40 +01:00
Ralfs Gūtmanis d1d72031f2 Add ability to pass CharSequence instead of forcing String for context variable.
java.lang.String is immutable and cannot be overwritten by user.
When passing sensitive data as context variable String remains in memory until GC removes it.
CharSequence allows user to provide his own implementation and overwrite data as needed.
2023-09-18 14:05:37 +03:00
Michael Bayne 5b0fa29a74 Set source level to 1.8.
The latest JVMs don't support 1.7 any longer, and surely we don't need to claim
1.7 source level for GWT any more.
2023-07-19 13:12:38 -07:00
Michael Bayne a100ab5ca7 Merge pull request #139 from rgdoliveira/master_protocol
Move .gitmodules from git protocol due to deprecation
2023-07-19 13:11:10 -07:00
Roberto Oliveira ca00d98fcd Move .gitmodules from git protocol due to deprecation 2023-07-19 17:10:20 +02:00
Michael Bayne f7054a673c Merge pull request #132 from maximebochon/patch-3
README: use HTML code blocks for HTML examples
2022-05-14 11:57:45 -07:00
Michael Bayne 35c324857d Merge pull request #134 from bhoefling-c2c/fix-readme
README.md: Fix URL, use mustache.github.io.
2022-05-14 11:57:21 -07:00
Björn Höfling eaf023b351 README.md: Fix URL, use mustache.github.io. 2022-05-13 17:17:03 +02:00
Maxime BOCHON c9ba5e8946 README: use HTML code blocks for HTML examples 2022-02-14 16:19:50 +01:00
Michael Bayne 5392256ddc Merge pull request #130 from maximebochon/patch-1
fix typo in README: varables -> variables
2022-02-11 10:49:46 -08:00
Michael Bayne 92d4fc30bc Merge pull request #131 from maximebochon/patch-2
fix typo in README: <ul/> -> <ul>
2022-02-11 10:46:45 -08:00
Maxime BOCHON dda49a1afc fix typo in README: <ul/> -> <ul> 2022-02-10 17:38:06 +01:00
Maxime BOCHON 1fcd6af9d9 fix typo: varables -> variables 2022-02-10 17:26:52 +01:00
Michael Bayne fae687be95 Merge pull request #129 from sh-cho/patch-1
Fix closing tag in README.md
2022-01-13 10:17:31 -08:00
Seonghyeon Cho 788601d1c2 Fix closing tag 2022-01-12 16:14:53 +09:00
Michael Bayne 1853a1fbaa Merge pull request #127 from samskivert/dependabot/maven/org.yaml-snakeyaml-1.26
Bump snakeyaml from 1.11 to 1.26
2021-11-17 07:31:59 -08:00
Michael Bayne 5ef99b24ee Merge pull request #128 from JoeCqupt/fix-readme-example
fix readme example
2021-11-17 07:31:21 -08:00
jiangyuan04 39faf564fe fix readme example 2021-09-10 10:30:21 +08:00
dependabot[bot] 2f17b67e2b Bump snakeyaml from 1.11 to 1.26
Bumps [snakeyaml](https://bitbucket.org/asomov/snakeyaml) from 1.11 to 1.26.
- [Commits](https://bitbucket.org/asomov/snakeyaml/branches/compare/snakeyaml-1.26..v1.11)

---
updated-dependencies:
- dependency-name: org.yaml:snakeyaml
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-04 22:03:09 +00:00
Michael Bayne ca08cdb1a4 Tests for some first/last stuff.
From @spacether.
2021-02-04 13:20:00 -08:00
Michael Bayne 460ea475a7 Run tests in script.
I guess having a custom script prevents tests from running by default.
2020-11-07 09:40:21 -08:00
Michael Bayne 8e485a68e1 Reword second motivation more neutrally.
Closes #121.
2020-11-03 11:21:57 -08:00
Michael Bayne 5e09fb1802 Remove mention of mustache.java. 2020-11-03 11:17:30 -08:00
Michael Bayne 017dc4e277 Merge pull request #123 from samskivert/dependabot/maven/junit-junit-4.13.1
Bump junit from 4.11 to 4.13.1
2020-11-03 11:15:56 -08:00
Michael Bayne 9508731dfa Add a test for recursive partial expansion.
This pertains to issue #124, but it seems to work fine.
2020-11-03 11:15:00 -08:00
dependabot[bot] 8bf56937e2 Bump junit from 4.11 to 4.13.1
Bumps [junit](https://github.com/junit-team/junit4) from 4.11 to 4.13.1.
- [Release notes](https://github.com/junit-team/junit4/releases)
- [Changelog](https://github.com/junit-team/junit4/blob/main/doc/ReleaseNotes4.11.md)
- [Commits](https://github.com/junit-team/junit4/compare/r4.11...r4.13.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-10-13 09:51:31 +00:00
Michael Bayne 9855710cc0 Use OpenJDK for CI builds. 2020-01-05 10:31:40 -08:00
Michael Bayne da7970e993 Allow access coercion to be disabled.
I'm not disabling it by default because that would change behavior for anyone
who was using reflection, which seems like annoying breakage. People who are
using JMustache with Java 9 can configure a non-coercing DefaultCollector to
eliminate the illegal access warnings.
2019-12-17 13:39:22 -08:00
Michael Bayne 9f0ade9db7 Update links to latest release. 2019-07-10 08:57:28 -07:00
Michael Bayne 01319c52df [maven-release-plugin] prepare for next development iteration 2019-07-10 08:41:27 -07:00
Michael Bayne c61801a7c6 [maven-release-plugin] prepare release jmustache-1.15 2019-07-10 08:41:18 -07:00
Michael Bayne 7e9b70ad9a Wrangle javadoc plugin back into operation.
Remove auto-module-name stuff as we have a real module-info now.
2019-07-10 08:39:37 -07:00
Michael Bayne 5d34f5bf52 Our module name is com.samskivert.jmustache. 2019-07-10 08:39:09 -07:00
Michael Bayne 1639640b54 A bunch of Maven plugin updates.
Hopefully things will play nicely with JDK11 now...
2019-07-10 08:17:35 -07:00
Michael Bayne 6691b3b687 Formatting tweak. 2019-07-02 08:15:30 -07:00
Michael Bayne db871d7f56 Merge pull request #107 from greg-simon/master
emptyStringIsFalse flag now works with any Object.
2019-07-02 08:13:33 -07:00
Greg Simon e01c1b7522 emptyStringIsFalse flag now works with any Object.
Previously, only String types were checked for being empty. Now
the Formatter is used to format the Object before checking for
being empty.
2019-06-27 11:23:19 +10:00
Michael Bayne fef365c986 Some Maven plugin version updates. 2019-02-08 11:25:18 -08:00
Michael Bayne 52ce395615 Disable Cobertura. Doesn't work with JDK9, yay. 2019-02-08 11:25:01 -08:00
Michael Bayne 241fbb723b Add a module config, twiddle build to support it.
We now have to build with JDK9 or above, but I believe that the built jar files
continue to be compatible with JDK 1.7 or above. If this turns out not to be
the case, please let me know.
2019-02-08 10:39:48 -08:00
Michael Bayne 8f7f2b2283 Specify a Jigsaw module name. 2019-02-07 15:08:43 -08:00
Michael Bayne b3c54669cc Make MustacheCustomContext a Mustache inner interface.
This matches the style of all the other extension points.
2018-08-21 17:20:33 -07:00
Michael Bayne 1c025166eb Merge pull request #103 from devinrsmith/feature/mustache-source
added MustacheCustomContext
2018-08-21 17:12:00 -07:00
Devin Smith 433e9677d4 added MustacheCustomContext 2018-08-21 17:32:18 -05:00
Michael Bayne 4533567303 Fix bugs relating to . and this.
First, I missed some reference checks when I stopped interning names. Fixed
those.

Second, when iterating over an array which contained null elements, the wrong
thing was happening.
2018-06-04 16:10:35 -07:00