I am trying to utilize Jinja2 templates to render dynamic HTML in a chalice route. I have been attempting to render the template by creating a render function like this: