The render function is the only one which calls the template rendering methods.
The Django template index.html will be rendered by my render function, which initially just looks like this:
def render (template_values):
# to do: add data to template_values
path = os.path.join(os.path.dirname(__file__), 'index.html')
return(template.render(path, template_values))