Using templating in simulations
Use templating in Hoverfly Cloud simulations to create dynamic responses based on request data and other variables.
Last updated
Use templating in Hoverfly Cloud simulations to create dynamic responses based on request data and other variables.
Last updated
Templating in Hoverfly Cloud provides a powerful way to render just about anything you want into the response. It uses the well known {{ handlebars }} syntax where the handlebars surround functions which allow you to control information flow.
Important: In order to enable templating you need to explicitly click the "Enable templating" checkbox when crafting your response.
A simple tutorial that covers some of what's possible with templating can be found .
As this is a fairly large topic it is broken up into sections:
Please select a section from the menu or continue reading about templating