Este sítio funciona melhor com JavaScript.
Página inicial
Ajuda
Iniciar sessão
ben
/
copyvios
espelho de
https://github.com/earwig/copyvios
Vigiar
1
Marcar como favorito
1
Derivar
0
Código
Lançamentos
0
Trabalho
Ver a proveniência
Use json.dumps for the string handling instead.
pull/24/head
Ben Kurtovic
há 10 anos
ascendente
9b07a5e9dc
cometimento
b2db78f021
1 ficheiros alterados
com
4 adições
e
3 eliminações
Visualização em 2 colunas
Opções das diferenças
Mostrar estatísticas
Descarregar ficheiro patch
Descarregar ficheiro diff
+4
-3
templates/api.mako
+ 4
- 3
templates/api.mako
Ver ficheiro
@@ -1,3 +1,6 @@
<%!
from json import dumps
%>\
<%def name="do_indent(size)">
<br />
% for i in xrange(size):
@@ -21,10 +24,8 @@
% endfor
${do_indent(indent)}
]
% elif isinstance(obj, type("").__bases__[0]):
"${obj | h}"
% else:
${obj | h}
${dumps(obj) | h}
% endif
</%def>\
<!DOCTYPE html>
Escrever
Pré-visualizar
Carregando…
Cancelar
Guardar