def debug_dump(obj): """Dumps the data into a HTML page for debugging.""" dump = _escaped_newline_re.sub("\n", simplejson.dumps(obj, ensure_ascii=False, indent=2)) return render_template("api/debug_dump.html", dump=dump)
def render(self, path, dictionary): return render_template(path, **dictionary)