Releases: Handlebars-Net/Handlebars.Net
2.0.8
Changes
Bug Fixes 🐛
Performance 🐌
-
Improve performance for large arrays (10.000+) @albertschulz (#451)
When rendering templates with large arrays, execution time grows exponentially.
The issue originated from the cache for the iterators contained inBoxedValues.cs. In opposite to the desired reduced memory usage, memory usage actually also explodes for the example show above.This pull request removes the cache, leaving the small boxing-cache for integer values between 0 and 20. Furthermore, it adds a benchmark for the execution time.
Contributors
@albertschulz, @bsagal and @zjklee
2.0.7
Changes
Bug Fixes 🐛
-
Render layouts using
LayoutViewModelinstead ofDynamicViewModel@heemskerkerik (#443)Fixes #440.
Because
DynamicViewModelis ‘too flexible’, it is difficult to provide a fully workingObjectDescriptorfor it. Instead, this introduces a new, more limitedLayoutViewModel, which intercepts binding expressions forbody, but forwards everything else, including iteration, to the main view’s model.DynamicViewModelis left unmodified, since it’s public and it’s unclear whether people actually use it. -
@dataobject is not accessible withinlayout@zjklee (#441)What's inside:
@dataobject is properly passed tolayout
Issues:
- closes #439
-
Only parse comments as layout when they are not escaped @heemskerkerik (#438)
Fixes #437
This lets
CommentParser.AccumulateCommentreturn whether the comment is an ‘escaped’ comment (i.e. starting with--), and only parses a layout token when it is not escaped.
Contributors
@heemskerkerik and @zjklee
2.0.6
2.0.5
Changes
-
Remove call-for-input link - V2 is out @nblumhardt (#429)
Bug Fixes 🐛
-
Fix child context creation when value is
nullwhen invoking partials @zjklee (#433)What's inside:
- fix child context creation when value is
null - fix dependency propagation to
Enumerabledescriptor
Issues:
- closes #432
- fix child context creation when value is
-
Properly handle empty ObjectDescriptor in hash population @zjklee (#427)
What's inside:
- Properly handle empty ObjectDescriptor in hash population
Issues:
- closes #422
Contributors
@nblumhardt and @zjklee
2.0.4
Changes
Bug Fixes 🐛
-
Fix for Issue #412 @leniency (#413)
The
ReflectionMemberAccessorthrows an exception when accessing value type members. The internal CreateGetDelegate method must specify pass-by-reference for these types. -
Add boundaries check to MemberAccessor responsible for
IList*@zjklee (#409)Closes #408
Contributors
@leniency and @zjklee
2.0.3
Changes
Bug Fixes 🐛
-
Fix
^if,^unlessand^each@zjklee (#405)Closes /issues/387
-
Multiple fixes to path resolvement @zjklee (#403)
What's inside:
@dataflows to child context- helper names are case insensitive
- fixed context switch
- fixed problem with fallback to context when same name variable exists
Issues:
- found in /issues/394
- closes /issues/402
- closes /issues/401
- closes /issues/399
Contributors
@zjklee
2.0.2
Changes
Bug Fixes 🐛
-
fix #394 - get first not single @mhornbacher (#398)
Fix for #394
-
Fix case insensitive selection of WellKnownVariable @zjklee (#397)
Closes #395
-
Make respective classes serialize for net451 and net452 @zjklee (#396)
Closes #393
Contributors
@mhornbacher and @zjklee
2.0.1
Changes
Bug Fixes 🐛
-
Fix assembly signing
Contributors
@zjklee
2.0.0
Release
For the list of changes please see change log of pre-release versions:
2.0.0-rc-2
Changes
Bug Fixes 🐛
-
Fix subscription direction for
ObjectDescriptorFactoryandFormatterFactory
Contributors
@zjklee