Skip to content

Releases: Handlebars-Net/Handlebars.Net

2.0.8

02 Jun 19:58
9e9d60e

Choose a tag to compare

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 in BoxedValues.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

26 Mar 12:48
01ad0e6

Choose a tag to compare

Changes

Bug Fixes 🐛

  • Render layouts using LayoutViewModel instead of DynamicViewModel @heemskerkerik (#443)

    Fixes #440.

    Because DynamicViewModel is ‘too flexible’, it is difficult to provide a fully working ObjectDescriptor for it. Instead, this introduces a new, more limited LayoutViewModel, which intercepts binding expressions for body, but forwards everything else, including iteration, to the main view’s model. DynamicViewModel is left unmodified, since it’s public and it’s unclear whether people actually use it.

  • @data object is not accessible within layout @zjklee (#441)

    What's inside:

    • @data object is properly passed to layout

    Issues:

  • Only parse comments as layout when they are not escaped @heemskerkerik (#438)

    Fixes #437

    This lets CommentParser.AccumulateComment return 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

21 Mar 12:53
95c787a

Choose a tag to compare

Changes

Bug Fixes 🐛

  • Fix multiple block params in the same template in different blocks @zjklee (#436)

    What's inside:
    • fixes HandlebarsCompilerException when template contains multiple blockParams in different blocks

Contributors

@zjklee

2.0.5

06 Mar 22:28
a2146e7

Choose a tag to compare

Changes

Bug Fixes 🐛

  • Fix child context creation when value is null when invoking partials @zjklee (#433)

    What's inside:

    • fix child context creation when value is null
    • fix dependency propagation to Enumerable descriptor

    Issues:

  • Properly handle empty ObjectDescriptor in hash population @zjklee (#427)

    What's inside:

    • Properly handle empty ObjectDescriptor in hash population

    Issues:

Contributors

@nblumhardt and @zjklee

2.0.4

07 Jan 21:00
c82a3b0

Choose a tag to compare

Changes

Bug Fixes 🐛

  • Fix for Issue #412 @leniency (#413)

    The ReflectionMemberAccessor throws 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

11 Dec 16:56
6ce87b6

Choose a tag to compare

Changes

Bug Fixes 🐛

  • Fix ^if, ^unless and ^each @zjklee (#405)

    Closes /issues/387

  • Multiple fixes to path resolvement @zjklee (#403)

    What's inside:

    • @data flows to child context
    • helper names are case insensitive
    • fixed context switch
    • fixed problem with fallback to context when same name variable exists

    Issues:

Contributors

@zjklee

2.0.2

08 Dec 12:35
0a03914

Choose a tag to compare

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

07 Dec 18:46
46c80b2

Choose a tag to compare

Changes

Bug Fixes 🐛

  • Fix assembly signing

Contributors

@zjklee

2.0.0

06 Dec 18:39
ea7adce

Choose a tag to compare

Release

For the list of changes please see change log of pre-release versions:

2.0.0-rc-2

02 Dec 22:02
27e7923

Choose a tag to compare

2.0.0-rc-2 Pre-release
Pre-release

Changes

Bug Fixes 🐛

  • Fix subscription direction for ObjectDescriptorFactory and FormatterFactory

Contributors

@zjklee