1. Torbjörn Törnkvist
  2. rebar_templates

Commits

Torbjorn Tornkvist  committed 2d6eaa6

Adding the event callback function.

  • Participants
  • Parent commits 8b98aeb
  • Branches default

Comments (0)

Files changed (1)

File nitro.index.erl

View file
  • Ignore whitespace
 
 -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.