소스 검색

Improve walk_json().

pull/24/head
Ben Kurtovic 9 년 전
부모
커밋
8a2f1f022e
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. +4
    -2
      templates/api.mako

+ 4
- 2
templates/api.mako 파일 보기

@@ -13,7 +13,7 @@
% endfor
${do_indent(indent)}
}
% elif isinstance(obj, type([])):
% elif isinstance(obj, (type([]), type(()))):
[
% for member in obj:
${do_indent(indent + 1)}
@@ -21,8 +21,10 @@
% endfor
${do_indent(indent)}
]
% elif isinstance(obj, type("").__bases__[0]):
"${obj | h}"
% else:
${repr(obj) | h}
${obj | h}
% endif
</%def>\
<!DOCTYPE html>


불러오는 중...
취소
저장