Updated Response Templating (markdown)

Stef Heyenrath
2021-01-20 08:08:41 +01:00
parent a3fd130480
commit 71a0c797ba

@@ -1,6 +1,6 @@
Response headers and bodies can optionally be rendered using
Response headers and bodies can optionally be rendered (templated) with:
- [Handlebars.Net](https://github.com/rexm/Handlebars.Net) templates.
- [Handlebars.Net](https://github.com/rexm/Handlebars.Net)
- [Scriban/Scriban DotLiquid](https://github.com/scriban/scriban)
This enables attributes of the request to be used in generating the response e.g. to pass the value of a request ID header as a response header or render an identifier from part of the URL in the response body. To use this functionality, add `.WithTransformer()` to the response builder.