Current section

Files

Jump to
drab priv templates drab.gen.commander.ex.eex
Raw

priv/templates/drab.gen.commander.ex.eex

defmodule <%= module %>Commander do
use Drab.Commander
# Drab Events
# place your event handers here
#
# def button_clicked(socket, dom_sender) end
# html("#output_div", "Clicked button!")
# end
#
# Drab Callbacks
# to run onload callback, use :onload directive:
#
# use Drab.Commander, onload: :page_loaded
#
# def page_loaded(socket) do
# html("#output_div", "Page loaded")
# end
end