Setting mainpage to be templated by jinja