Loading homepage
Input: renderTemplate("Hello {{ users[0].name }}! {{{ trusted }}}", {users:[{name:"Ada & Lin"}],trusted:"<b>ready</b>"}); Output: Hello Ada & Lin! <b>ready</b>
Input: const render = compileTemplate("{{ user.name }}: {{ count }}"); render({user:{name:"Ada"},count:0}); Output: Ada: 0
Implement the exported API in index.js or index.ts. The documented contract defines the scope of this exercise.