Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async function render (state, template, data, themeId) {
debug3(state, `Interface.render(${template}, ${themeId}, ${data.id}):start`)
const options = getOptions(state, { themeId })
const rendered = await UI.render(options, template, data)
debug3(state, `Interface.render(${template}, ${themeId}, ${data.id}):end`)
return rendered
}