mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-03-21 17:10:26 +01:00
Updated Response Templating (markdown)
@@ -58,11 +58,14 @@ server
|
||||
"Response": {
|
||||
"Headers": { "Content-Type": "application/xml" },
|
||||
"BodyAsFile": "c:\\temp-wiremock\\__admin\\mappings\\_{{request.query.MyUniqueNumber}}_\\MyXmlResponse.xml",
|
||||
"UseTransformer": true
|
||||
"UseTransformer": true,
|
||||
"UseTransformerForBodyAsFile": true
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
:memo: Note that the `UseTransformerForBodyAsFile` is required to not just transform the filename itself, but also transform the content from that specified file. (#386 and #1106)
|
||||
|
||||
### Scriban
|
||||
For using Scriban as templating engine, just provide the type:
|
||||
#### C#
|
||||
|
||||
Reference in New Issue
Block a user