When loading a request/assertions from a file, we should use a template engine such as Handlebars or Mustache to process the file as a template and replace any template variables with values passed in from a test.
This allows us to pass in variables to files from test code. Implementation-wise, even if we specify the request from a string, the string would be a template which is processed by our Template library.
The request/assertions object would then have methods, `.addTemplateValue()' which will replace all the template variables in the body with the values given by the user.
When loading a request/assertions from a file, we should use a template engine such as Handlebars or Mustache to process the file as a template and replace any template variables with values passed in from a test.
This allows us to pass in variables to files from test code. Implementation-wise, even if we specify the request from a string, the string would be a template which is processed by our Template library.
The request/assertions object would then have methods, `.addTemplateValue()' which will replace all the template variables in the body with the values given by the user.