Add mod_opt_type function (#121)
This commit is contained in:
parent
2cfe253b9b
commit
ce4c11f5fe
|
@ -14,7 +14,8 @@
|
||||||
init/1,
|
init/1,
|
||||||
stop/1,
|
stop/1,
|
||||||
log_packet_send/4,
|
log_packet_send/4,
|
||||||
log_packet_receive/5]).
|
log_packet_receive/5,
|
||||||
|
mod_opt_type/1]).
|
||||||
|
|
||||||
-ifndef(LAGER).
|
-ifndef(LAGER).
|
||||||
-define(LAGER, 1).
|
-define(LAGER, 1).
|
||||||
|
@ -268,3 +269,9 @@ css() ->
|
||||||
".ressource {color: #336699; }~n"++
|
".ressource {color: #336699; }~n"++
|
||||||
".messagetext {color: black; margin: 0.2em; clear: both; display: block;}~n"++
|
".messagetext {color: black; margin: 0.2em; clear: both; display: block;}~n"++
|
||||||
"//-->~n</style>~n".
|
"//-->~n</style>~n".
|
||||||
|
|
||||||
|
mod_opt_type(path) -> fun iolist_to_binary/1;
|
||||||
|
mod_opt_type(format) ->
|
||||||
|
fun (A) when is_atom(A) -> A end;
|
||||||
|
mod_opt_type(_) ->
|
||||||
|
[path, format].
|
||||||
|
|
Loading…
Reference in New Issue