def index(self): global repo global config tmpl = env.get_template('base.html') try: return tmpl.render(repo=repo,config=config,STATIC_URL='/static/') except Exception, e: return env.get_template('error.html').render(exception=e)
def commits(self, **data): global repo tmpl = env.get_template('_commits.html') try: skip = data['skip'] except: skip = 0 return tmpl.render(repo=repo, skip=skip, STATIC_URL='/static/')
def details(self): global repo tmpl = env.get_template('_details.html') return tmpl.render(repo=repo,STATIC_URL='/static/')