Handlebars helpers are not registered #261

Closed
opened 2025-12-29 15:19:15 +01:00 by adam · 6 comments
Owner

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:

Message: Template references a helper that is not registered. Could not find helper 'capitalize'

Am I missing something?

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: > Message: Template references a helper that is not registered. Could not find helper 'capitalize' Am I missing something?
adam added the question label 2025-12-29 15:19:15 +01:00
adam closed this issue 2025-12-29 15:19:15 +01:00
Author
Owner

@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 (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.
Author
Owner

@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 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.
Author
Owner

@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?

@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?
Author
Owner

@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.

@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.
Author
Owner

@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

@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`
Author
Owner

@LevYas commented on GitHub (May 18, 2020):

Works well now, thanks!

@LevYas commented on GitHub (May 18, 2020): Works well now, thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/WireMock.Net-wiremock#261