Commits

Anonymous committed 2d6eaa6

Adding the event callback function.

Comments (0)

Files changed (1)

 
 -module(index).
 -include_lib("nitrogen/include/wf.hrl").
--export([main/0, title/0, layout/0]).
+-export([main/0, title/0, layout/0, event/1]).
 
 main() ->
     #template { file="./templates/grid.html" }.
               #grid_12 { body={{appid}}_common:footer() }
              ]}.
 
-
+event(Event) ->
+    io:format("Event=~p~n",[Event]),
+    ok.