Example #1
0
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)
Example #2
0
 def render(self, path, dictionary):
     return render_template(path, **dictionary)