def _generate_page(self, template_path, kwargs={}):
    with open(template_path, 'r') as f:
      template = jinja2.Template(f.read())

    with open(self._index_file, 'w') as f:
      f.write(template.render(**kwargs))