Browse Source

remove n2o dependency

Namdak Tonpa 7 years ago
parent
commit
5208fb6bf6
2 changed files with 6 additions and 2 deletions
  1. 3 1
      src/nitro.erl
  2. 3 1
      src/render/wf_event.erl

+ 3 - 1
src/nitro.erl

@@ -1,10 +1,12 @@
 -module(nitro).
 -module(nitro).
--include_lib("n2o/include/n2o.hrl").
 -include_lib("nitro/include/nitro.hrl").
 -include_lib("nitro/include/nitro.hrl").
 -compile(export_all).
 -compile(export_all).
 -behaviour(application).
 -behaviour(application).
 -export([start/2, stop/1, init/1]).
 -export([start/2, stop/1, init/1]).
 
 
+-record(ev,      { module, msg, trigger, name }).
+-record(cx,      { handlers, actions, req, module, lang, path, session, formatter=false, params, form, state=[] }).
+
 start(_StartType, _StartArgs) -> supervisor:start_link({local, ?MODULE}, ?MODULE, []).
 start(_StartType, _StartArgs) -> supervisor:start_link({local, ?MODULE}, ?MODULE, []).
 stop(_State) -> ok.
 stop(_State) -> ok.
 init([]) -> {ok, {{one_for_one, 5, 10}, []}}.
 init([]) -> {ok, {{one_for_one, 5, 10}, []}}.

+ 3 - 1
src/render/wf_event.erl

@@ -1,10 +1,12 @@
 -module(wf_event).
 -module(wf_event).
 -author('Maxim Sokhatsky').
 -author('Maxim Sokhatsky').
 -author('Andrey Martemyanov').
 -author('Andrey Martemyanov').
--include_lib ("n2o/include/n2o.hrl").
 -include_lib ("nitro/include/nitro.hrl").
 -include_lib ("nitro/include/nitro.hrl").
 -compile(export_all).
 -compile(export_all).
 
 
+-record(ev,      { module, msg, trigger, name }).
+-record(cx,      { handlers, actions, req, module, lang, path, session, formatter=false, params, form, state=[] }).
+
 -define(B(E), nitro:to_binary(E)).
 -define(B(E), nitro:to_binary(E)).
 -define(L(E), nitro:to_list(E)).
 -define(L(E), nitro:to_list(E)).
 target({qs,S}) -> ["qs('",nitro:js_escape(?L(S)), "')"];
 target({qs,S}) -> ["qs('",nitro:js_escape(?L(S)), "')"];