Hey, I’m new to PM and very interested in the Visualizer feature, but I’m wondering - are templates only able to access/pass in data from a response with handlebars? Meaning, is there any way I can work with regular old Javascript to handle data/interpolate it into a template? For instance:
var template = `
<div>{{myresponse.product}}</div>`
`
pm.visualizer.set(template, {
myresponse: pm.response.json()
})
Works fine - I see the value I expect, which is just the value of a property within the main response object.
However,
var template = `
<div>${myresponse.product}</div>
`
pm.visualizer.set(template, {
myresponse: pm.response.json()
})
Give the error “myresponse” is not defined.
Wondering if anyone has an answer to this/basic tips on using regular JS instead of handlebars inside a template, or just in the visualizer at large (like, is a template required?) Thanks!!