Skip to content
Newer
Older
100644 29 lines (24 sloc) 828 Bytes
fdbcd74 @klacke ""
authored Nov 26, 2002
1
2 <erl>
3
7811247 @vinoski whitespace cleanup
vinoski authored Oct 31, 2011
4 out(A) ->
ffee7fc @klacke some more debug support
authored Mar 17, 2004
5 {Code, F} = case queryvar(A, "file") of
0be3c7e @klacke untabified all of yaws
authored Feb 14, 2008
6 {ok, Fname} ->
7811247 @vinoski whitespace cleanup
vinoski authored Oct 31, 2011
7 File = A#arg.docroot ++
0be3c7e @klacke untabified all of yaws
authored Feb 14, 2008
8 yaws_api:sanitize_file_name(Fname),
9 case file:read_file(File) of
10 {ok, B} ->
7811247 @vinoski whitespace cleanup
vinoski authored Oct 31, 2011
11 C = {'div',
0be3c7e @klacke untabified all of yaws
authored Feb 14, 2008
12 [],
13 {pre, [], B}},
14 {C, Fname};
15 _ ->
16 {[], "Can't read " ++ Fname }
17 end;
18 undefined ->
19 {[], "Bad request"}
20 end,
bea8261 @klacke added log_wrap_size, configurable wrap size for all logs, fixed a bug…
authored Nov 19, 2004
21 {ehtml, {html, [],
7811247 @vinoski whitespace cleanup
vinoski authored Oct 31, 2011
22 {'div',
0be3c7e @klacke untabified all of yaws
authored Feb 14, 2008
23 [],
7811247 @vinoski whitespace cleanup
vinoski authored Oct 31, 2011
24 [{h2, [], F},
0be3c7e @klacke untabified all of yaws
authored Feb 14, 2008
25 Code]}}}.
fdbcd74 @klacke ""
authored Nov 26, 2002
26
27
28 </erl>
Something went wrong with that request. Please try again.