示例#1
0
文件: api.py 项目: passy/rdreilib
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)
示例#2
0
文件: sidebar.py 项目: passy/rdreilib
 def render(self, path, dictionary):
     return render_template(path, **dictionary)