def get(self, path=""): projects = Project.query.all() report = BuildReport(projects) context = report.generate() html_content = Markup(Pynliner().from_string(render_template("email/build_report.html", **context)).run()) return render_template("debug/email.html", html_content=html_content)
def get(self, path=''): projects = Project.query.all() report = BuildReport(projects) context = report.generate(days=int(request.args.get('days', 7))) html_content = Markup(toronado.from_string( render_template('email/build_report.html', **context) )) return render_template('debug/email.html', html_content=html_content)