mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 14:20:29 +01:00
Handlebars helpers are not registered #261
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @LevYas on GitHub (Mar 16, 2020).
Hi!
Thank you for the very useful project!
I tried to use a helper from the example on the wiki https://github.com/WireMock-Net/WireMock.Net/wiki/Response-Templating#handlebars-helpers :
{{capitalize request.body}}
but this gives me an error:
Am I missing something?
@StefH commented on GitHub (Mar 17, 2020):
Sorry, these default string helpers are not available for the .NET Handlebars implementation. I've asked a question here about that: https://github.com/rexm/Handlebars.Net/issues/343
For now I did update my wiki.
@StefH commented on GitHub (Apr 13, 2020):
@LevYas
I'm building a new library which has some string and math helpers, see this project:
https://github.com/StefH/Handlebars.Net.Helpers
It's not yet integrated in WireMock.Net, but I plan to do that.
Please review and tell me if you need more helpers.
@StefH commented on GitHub (Apr 21, 2020):
@LevYas Can you please review https://github.com/StefH/Handlebars.Net.Helpers and read the Wiki and tell me if you are missing some helpers?
@LevYas commented on GitHub (Apr 22, 2020):
@StefH I think it would be great to have these helpers integrated into WireMock.Net! They'll give a lot of power to response templating. I think already existing there helpers will fully cover my needs and 90% of response templating needs. I would suggest you integrate it here so people could start to use it, test it, and give you feedback.
@StefH commented on GitHub (Apr 22, 2020):
I've uploaded version 1.0.0 from Handlebars.Net.Helpers which is included in the this preview version from WireMock.Net :
WireMock.Net.1.2.4-ci-13218.nupkg@LevYas commented on GitHub (May 18, 2020):
Works well now, thanks!