local-kak-snippets/snippets/elixir/liveview

16 lines
214 B
Plaintext
Raw Normal View History

2020-07-09 00:57:30 -04:00
defmodule {Package}.{Name}Live do
2020-07-28 00:12:58 -04:00
use {Package}, :live_view
2020-07-09 00:57:30 -04:00
@impl true
def mount(_params, _session, socket) do
{:ok, assign(socket)}
end
def render(assigns) do
~L"""
"""
end
{body}
end