|
@@ -5,6 +5,10 @@
|
|
|
-behaviour(application).
|
|
|
-export([start/2, stop/1, init/1]).
|
|
|
|
|
|
+q(Key) -> Val = get(Key), case Val of undefined -> qc(Key); A -> A end.
|
|
|
+qc(Key) -> CX = get(context), qc(Key,CX).
|
|
|
+qc(Key,Ctx) -> proplists:get_value(nitro:to_binary([Key]),Ctx#cx.params).
|
|
|
+
|
|
|
start(_StartType, _StartArgs) -> supervisor:start_link({local, ?MODULE}, ?MODULE, []).
|
|
|
stop(_State) -> ok.
|
|
|
init([]) -> {ok, {{one_for_one, 5, 10}, []}}.
|