Releases: noxum/CompiledHandlebars
Releases · noxum/CompiledHandlebars
v0.4.3.1
v0.4.3
compilation input converts \r\n to \n
v0.4.2
Implementations of Handlebar helper methods may now accept a StringBuilder as last parameter. If so the method is supplied a StringBuilder in which they can append their output.
v0.4.1
- better handling of ambiguous partial references
v0.4.0
- Generated templates are now using the async/await pattern
- Instead of the Render methods returning a string, the new RenderAsync methods return nothing, but require a StringBuilder as parameter which itself is handed down to partials and helper functions.
- If helper functions end on "Async" they are awaited now. e.g {{MyLittleHelperFunctionAsync ... will now cause the call to MyLittleHelperFunctionAsync to be awaited in the generated C# code.
- to accomodate the new async/await templates the ViewEngines had to be adjusted. While for the integration of CompiledHandlebars.ViewEngine no action on your part should be neccessary, when you integrate a CompiledHandlebars.ViewEngine.Core, you now must provide a scoped StringFilterStream in your Startup routine. An example is provided in /Examples/AspDotNetCore/Startup.cs in the method ConfigureServices.
v.0.3.5
Enable VSIX to support Visual Studio 2019. The nuget packages remain unchanged.
v.0.3.6
The character ' is now a valid delimiter for literal strings.
For example:
before you had to write {{> _somePartial "literal string"}}, now you can also write {{> _somePartial 'literal string'}}
this change is meant to improve compatibility with hbs files written in a javascript environment.