I would like to use handlebars partials in WireMock. Unfortunately I can't find a way to register those in the docs.
Asked
Active
Viewed 2,286 times
1
-
They added it in newer versions. http://wiremock.org/docs/response-templating/ – MarkHu Dec 13 '21 at 17:01
1 Answers
1
Presently there is no support for HandleBars Partials in WireMock.
HandleBars is supported in the Response Template transformer and feature is handled as an extension. In the GitHub the ResponsTemplateTransformer.java handles the processing.
It's functionality can be extended using WireMock HandleBars 'helpers'. These are extensions documented on the Custom extensions page (bottom of the page) and examples in the GitHub code can be found here: responsetemplateing/helpers

A. Kootstra
- 6,827
- 3
- 20
- 43