Releases: trimou/trimou
Releases · trimou/trimou
2.5.0.Final
- Introduce
ContextConverterAPI - Introduce
Decorator,DecoratorConverterandDecoratorHelper(#124)- Thanks @muryoh for contribution!
- Fix
ReflectionResolver.HINT_FALLBACK_ENABLED_KEYregistration (#123) - Deprecate
ArrayIndexResolver,ListIndexResolver,InputLiteralLambda,SpecCompliantLambda(#127)
See also Decorate Your Template Data wiki page.
2.4.0.Final
2.3.0.Final
- Add
MustacheEngine.compileMustache(String templateContent)method - Helpers API - add
Options.getOriginalDefinition()method ReflectionResolver- fix special handling for enums (#107, thanks @rmuller for the report)EachHelperimprovements:- CDI extension refactoring and cleanup, drop CDI 1.0 support and add Weld 3 profile
- Spring extensions - component upgrades
- Fix parsing of list literals when used in a helper hash (see for example SetHelperTest)
2.2.1.Final
- Fix regression - move
SimpleHelpersback to src/main/java HelperDefinition- add convenientgetParameter()method- Add
TagHelper(see also https://github.com/trimou/trimou/wiki/How-to-render-a-template-with-braces-delimiters%3F) EachHelper- introduce built-in functions (skip, map, etc.) and allow to iterate over object at the top of the context stack- Component upgrades (PrettyTime, Weld, Gson, Arquillian)
2.2.0.Final
- Spring MVC integration - Spring 4 support (http://trimou.org/doc/latest.html#_spring_4_x)
- Spring Boot Starter extension (http://trimou.org/doc/latest.html#spring-boot)
- Code cleanup
Big thanks to @mschneid for the contributions!!!
2.1.0.Final
- Introduce
ValueConverterAPI (#95) - Preserve exception message during compilation (#93, thanks @hwellmann !)
- Don't cache template sources by default (#92)
- Allow fine-grained template cache invalidation (#91)
- Add
FormatHelper- a simple printf-style format helper, i.e.{{fmt '%tA' now locale='en'}}or{{fmt 'Hello %s!' 'me'}} - Support list/array literals in helpers (#90)
InvokeHelper- support default method name
2.0.1.Final
2.0.0.Final
NOTE: Trimou 2 is more like an evolution. Do not expect any revolutionary changes. Also we've tried to keep Trimou backward compatible where possible.
- Reduce the footprint - get rid of guava and commons-lang dependencies (#81, #80)
- The only runtime dependency of
trimou-coreisslf4j-api - footprint of core reduced by ~ 87% (from 3 MB to 396 KB)
- The only runtime dependency of
- Require Java 8, take advantage of new APIs and merge jdk8 extension into core (#82)
- New EL 3.0 extension
- New JSON Processing Object Model API extension (#84)
- New RepeatHelper
MustacheEngineBuilder- allow to set CL used for config extensions (#62)- Add builder API to
FileSystemTemplateLocatorandServletContextTemplateLocator(#85) - Java EE MVC extension prototype (#86)
LocaleSupportandTextSupportreworkEachHelpercan be used to iterate over multiple objectsMustacheTagInfo- addgetId()andgetTemplateGeneratedId()HttpServletRequestResolveris disabled by default (#87)- Performance improvements, component upgrades, codebase cleanup
1.8.4.Final
1.8.3.Final
- Add support for nested templates (#76):
{{! This is the nested template definition - available only within a defining template}}
{{+item_detail}}
Name: {{name}}
Price: {{price}}
{{/item_detail}}
{{! Use nested template by means of partial }}
{{#each activeItems}}
{{>item_detail}}
{{/each}}
NumericExpressionHelper- allow to specify the default operator, add "not in" operatorIfHelper- optionalelsesupports simple value expressions:
{{#if item.active else="{item.name} is not active!"}}
{{item.name}} is active!
{{/if}}