class Test { data() { return { name: "Zach", otherFn: function() { return "Thanos"; }, renderData: { str: `StringTest`, test: function({ name }) { return `howdy ${name}`; } } }; } render(data) { return `
${data.renderData.str}${ data.renderData.test }, meet ${data.otherFn()}
`; } } module.exports = Test;